[xmlsec] How load RSA key from RAM?

Martin Salo Martin.Salo at gmx.net
Fri Aug 17 09:40:49 PDT 2007


I have tried it with a base64 key and a binary key format, but it dont work:
xmlSecKey *oKey = xmlSecCryptoAppKeyLoadMemory(cBuffer, cBufferLen, xmlSecKeyDataFormatPem, 0, 0, 0);

In both cases I get this error:
func=xmlSecOpenSSLAppKeyLoadBIO:file=..\src\openssl\app.c:line=244:obj=unknown:
subj=PEM_read_bio_PrivateKey and PEM_read_bio_PUBKEY:error=4:crypto library function failed:
func=xmlSecOpenSSLAppKeyLoadMemory:file=..\src\openssl\app.c:line=194:obj=unknown:
subj=xmlSecOpenSSLAppKeyLoadBIO:error=1:xmlsec library function failed:

The key must be fix, so I cannot generate it by Openssl.
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail



More information about the xmlsec mailing list