[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#">
<KeyName/>
<KeyValue>
<RSAKeyValue>
<Modulus>
6CRzlLHhY+df8wO+X7GnFaP+MdjcuoQb2p5dvwe++zNmWmcj9k4sWMwIDa72Rzkw
6w7+x2FxZw2m/KpAeJGOyZz3QVOMggW0hbyrc+y8Bg1lMG14JHZAb7SrcD4rNv0O
pEcgcIh0ycm9RfnYf4i8spD2yatFVRV6s1TavUkUZsk=
</Modulus>
<Exponent>
AQAB
</Exponent>
<PrivateExponent xmlns="http://www.aleksey.com/xmlsec/2002">
a7IdfOpZKkP5G4CtHTAJ19xQ3UdCf7UyRuYZj7pEO73Iyj/3SxlRMZDWW6LD1p8N
tr8qK81lEu4efjFt34GHv9a6BpTfbkS3Z1Zz8Fg7xgTh16n9Xwgw9Ni9r2wFuhdu
a2f6wUgkhRXKyLljZLwtEhUjwHfXsN3RTGl1cxgNqVE=
</PrivateExponent>
</RSAKeyValue>
</KeyValue>
</KeyInfo>
</Keys>
Check that you correctly initialize both xmlsec and OpenSSL (see
apps/xmlsec.c for details).
Aleksey
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