Ssl – How to handle certificates on a Apache reverse-proxy

apache-2.2certificateoutlook-web-appreverse-proxyssl

Ok, so I was able to assemble an Apache for reverse proxy a bunch of internal sites.

However, those sites use SSL. For the moment, and for testing purposes, I'm using self-signed certificates from the Apache box.

I'm proxying a couple of OWA sites, and 2 https management consoles for a couple of appliances. I'm using name-based vhosts, and it's working fine (using Apache 2.2.14).

However, I want to use the original, correct certificates. I have the original "3rd-party" certificates for all the sites, in .cer and .p7b format, and my question is: can I convert the certificates into something Apache will accept? Or will I need to generate new certificates, from the Apache box?

Thanks!

Best Answer

You might need to convert the p7b cert to the PEM format but this can be handled using openssl:

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem

As for hosting multiple certs on a single Apache reverse proxy using virtual hosts, you will need a little bit more wizardry there. You will need to use SNI.