Rep:Re: [xmlsec] XML Encryption with session key

Yann Le Bars ylebar at ifrance.com
Thu Nov 6 06:57:13 PST 2003


OK, thanks
I have a problem with this function (ERR_print_errors_fp(stdout)) so I
got ERR_STATE and ran debug.
The only message I got was:
Expecting: ANY PRIVATE KEY

This is how I got the key:

openssl genrsa -des 512 > rsa_key.pem
and then
openssl rsa -in src_rsa.pem -pubout > rsa_pub.pem

-----Message d'origine-----
De: Aleksey Sanin <aleksey at aleksey.com>
A: Yann Le Bars <ylebar at ifrance.com>
Date: 05/11/03
Objet: Re: [xmlsec] XML Encryption with session key

I have no idea. Get debugger and see why RSA_public_encrypt() OpenSSL
function fails. Also you can modify the program and add a call to print
out
OpenSSL errors stack so we can see why it fails:

            /* we use key filename as key name here */
            if(encrypt_file(mngr, argv[1], argv[2]) < 0) {
 >>>         ERR_print_errors_fp(stdout);
                xmlSecKeysMngrDestroy(mngr);
                return(-1);
            }


Aleksey




Yann Le Bars wrote:

>I get the following error when running the encrypt3 example
>(http://www.aleksey.com/xmlsec/api/xmlsec-encrypt-with-session-key.html
)
>...
>  
>

_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


_____________________________________________________________________
Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps
réel avec MSN Messenger! C'est gratuit!   http://ifrance.com/_reloc/m
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France




More information about the xmlsec mailing list