[xmlsec] nss crypto and test suite

Edward Shallow ed.shallow at rogers.com
Sun Sep 18 18:00:21 PDT 2005


Yes I had discoverd that, was just about to inform you. Evertything 
working fine now. nss is much more picky about things than openssl ; )

Thanks again,
Ed

Aleksey Sanin wrote:

> You MUST use 'der' format for keys because nss does not understand 'pem'
>
> ./testDSig.sh nss /usr/local/src/xmlsec1-1.2.9/tests xmlsec1 der
>
> Aleksey
>
> Edward Shallow wrote:
>
>> Aleksey Sanin wrote:
>>
>>> Can you try to run testKeys.sh for nss first, please? It will create
>>> necessary keys in NSS keys storage.
>>>
>>> Aleksey
>>>
>>> _______________________________________________
>>> xmlsec mailing list
>>> xmlsec at aleksey.com
>>> http://www.aleksey.com/mailman/listinfo/xmlsec
>>>
>> Yes I do not get the init failure, all keys created in 
>> /tmp/xmlsec-crypto-config.
>>
>> I am running following command line ...
>>
>> ./testDSig.sh nss /usr/local/src/xmlsec1-1.2.9/tests xmlsec1 pem
>>
>>
>> ... and received following
>>
>> --- testDSig started for xmlsec-nss library (20050918_182358)
>> --- 
>> LD_LIBRARY_PATH=/usr/local/src/xmlsec1-1.2.9/src/nss/.libs:/usr/local/src/xmlsec1-1.2.9/src/openssl/.libs:/usr/lib 
>>
>> Test: /aleksey-xmldsig-01/enveloping-dsa-x509chain
>> xmlsec1 verify  --crypto nss --crypto-config 
>> /tmp/xmlsec-crypto-config --trusted-pem 
>> /usr/local/src/xmlsec1-1.2.9/tests/keys/cacert.pem --enabled-key-data 
>> x509 
>> /usr/local/src/xmlsec1-1.2.9/tests/aleksey-xmldsig-01/enveloping-dsa-x509chain.xml 
>>
>> func=xmlSecNssAppKeysMngrCertLoadSECItem:file=app.c:line=1389:obj=unknown:subj=unknown:error=17:invalid 
>> format:format=2;last nss error=-5977 (0xFFFFE8A7)
>> func=xmlSecNssAppKeysMngrCertLoad:file=app.c:line=1278:obj=unknown:subj=xmlSecNssAppKeysMngrCertLoadSECItem:error=1:xmlsec 
>> library function failed: ;last nss error=-5977 (0xFFFFE8A7)
>> Error: failed to load trusted cert from 
>> "/usr/local/src/xmlsec1-1.2.9/tests/keys/cacert.pem".
>> Error: keys manager creation failed
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
>




More information about the xmlsec mailing list