You can not (with xmlsec). You need to get a native crypto handle
to the key and then use the native crypto functions to do this.
Aleksey
Jürgen Heiss wrote:
Hi,
I tried to create a keypair. I works fine, but how can I write
this keypair to a file now? Is there dome function for this.
<short Code>
xmlSecKeyPtr key = xmlSecKeyGenerate(xmlSecKeyDataRsaId, 512,
xmlSecKeyDataTypePermanent);
int res = xmlSecKeyIsValid(key);
xmlSecKeyDataPtr keydata = xmlSecKeyGetValue (key);
res = xmlSecKeyDataGenerate( key->value, 512, xmlSecKeyDataTypeTrusted );
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec