[xmlsec] XML Sec LIB Usage

Aleksey Sanin aleksey at aleksey.com
Mon Dec 9 12:03:50 PST 2002

Works just fine for me:
    $[aleksey] xmlsec keys --privkey /tmp/Key.pem test.xml
    Enter PEM pass phrase: <entered 123456>
    $[aleksey] less test.xml
    <?xml version="1.0"?>
    <Keys xmlns="http://www.aleksey.com/xmlsec/2002">
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
    <PrivateExponent xmlns="http://www.aleksey.com/xmlsec/2002">

Check that you correctly initialize both xmlsec and OpenSSL (see 
apps/xmlsec.c for details).


Vasu wrote:

> Hai
>    Aleksey !
>              Good day.I would like to introduce my self as Sreenivas 
> from India.We are working on PKI and Electronic Signatures.Now we are 
> looking for XML SIgnature specs.Firstly i would like to congragulate 
> you for Providng XML sec Libirary at open SOURCE.
> I have few problems in working with this LIB.
> 1. I have created a self sign certifcate with OpenSSL tool and tries 
> to run the examle 2 given by you
> It fails to read the private key from pem file 
> xmlSecSimpleKeysMngrLoadPemKey is failing giving me Error.
> My Certificate and Private key are in Same file
> #  openssl req -new -x509 -days 365 -config cert.cnf -out Key.pem 
> -keyout Key.pem
> I dont know where i done mistake
> Here i am attching my certificate (Key.pem) It's Password is :123456
> Thanks
> Regards
> SreeniVAS.

More information about the xmlsec mailing list