Ultra has asked for the wisdom of the Perl Monks concerning the following question:
I'm getting this error when running ssl_server.pl from the examples directory (DEBUG enabled, and default cert/key in their place):
Invalid certificate authority locations
SSL error: 2996: 1 - error:02001002:system library:fopen:No such file or directory
SSL error: 2996: 2 - error:2006D080:BIO routines:BIO_new_file:no such file>br>
SSL error: 2996: 3 - error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
openssl is installed (OpenSSL 0.9.7a Feb 19 2003), and Net::SSLeay is up to date, fetched from CPAN, and i don't know what's the problem. I get this on two systems (Mandrake 9.1 and SuSE 8.1).
Dodge This!
as stated by "perldoc IO::Socket::SSL"
default locations for server key and server cert are certs/server-key.pem and certs/server-cert.pem (relative to working directory) so you have to copy your cert and key there or specify the correct location via the SSL_key_file and SSL_cert_file options
update
you should also set SSL_ca_file as stated by the error message...