Net::SSLeay: How to transmit an intermediate CA-Certificate?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hello usenet,

I have a little server program written in perl under linux. It is
invoked via the inetd super-daemon. I basically use the code from the
SSLeay documentation to open an ssl-connection.
This works fine with my self-made test-certificate. Now I have bought
a real certificate (from comodo). This certificate is not signed by a
real CA that browsers would recognize, but by an intermediate
certificate which itself is then signed by a real CA.
For the apache web-server I use the following config and it works:

  SSLCACertificateFile  /usr/ssl/certs/ComodoSecurityServicesCA.pem
  SSLCertificateFile    /root/real_ssl/my_real_cert.crt

How can I use my certificate with my own server-programm in perl? How
can I make SSLeay aware of my intermediate-certificate so it transmits
it, when clients need to verify my certificate?

Thanks for your help.



PS: If there is another way of doing SSL in Perl under Linux you can
also point me to it.

Site Timeline