[xmlsec] Re: How to get keys
Aleksey Sanin
aleksey at aleksey.com
Mon Feb 6 07:58:05 PST 2006
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 );
More information about the xmlsec
mailing list