<HTML>
<HEAD>
<TITLE>Having problems getting xmlsec working: Error: failed to initialize keys manager. A little help?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi guys,<BR>
<BR>
I’ve googled extensively, removed clumps of hair, sacrificed a small chicken, recompiled xmlsec a few times, reinstalled openssl rpms... To no avail.<BR>
<BR>
Here’s my setup:<BR>
<BR>
In testing, I’m running centos, with openssl 0.9.7a rpm installed, xmlsec 1.2.11 compiled from source.<BR>
<BR>
In production, I’m running RHEL, with openssl 0.9.7a and openssl-devel 0.9.7a rpms installed, xmlsec 1.2.11 compiled from source.<BR>
<BR>
In testing, xmlsec works fine.<BR>
In production, attempting to run xmlsec results in the following:<BR>
<BR>
root@www foo]# xmlsec1 --sign --privkey-pem dsaprivkey.pem --pubkey-der dsapubkey.der --output foo.xml in.xml<BR>
func=xmlSecOpenSSLX509StoreInitialize:file=x509vfy.c:line=651:obj=x509-store:subj=X509_LOOKUP_add_dir:error=4:crypto library function failed: <BR>
func=xmlSecKeyDataStoreCreate:file=keysdata.c:line=1328:obj=x509-store:subj=id->initialize:error=1:xmlsec library function failed: <BR>
func=xmlSecOpenSSLKeysMngrInit:file=crypto.c:line=313:obj=unknown:subj=xmlSecKeyDataStoreCreate:error=1:xmlsec library function failed:xmlSecOpenSSLX509StoreId<BR>
func=xmlSecOpenSSLAppDefaultKeysMngrInit:file=app.c:line=1270:obj=unknown:subj=xmlSecOpenSSLKeysMngrInit:error=1:xmlsec library function failed: <BR>
Error: failed to initialize keys manager.<BR>
Error: keys manager creation failed<BR>
<BR>
<BR>
Several posts on the web have stated this to be “something wrong with the openssl certs dir” <BR>
But /usr/share/ssl exists, and I don’t see anything wrong with it.<BR>
I’ve not seen anyone’s solutions to the problem, just a vague pointer to something wrong.<BR>
<BR>
Can anyone help shed a little light on what I’m missing? I’ve got to get this working today.<BR>
<BR>
Thanks much in advance. Your pointers are appreciated.<BR>
<BR>
-Wolf</SPAN></FONT>
</BODY>
</HTML>