Forum Moderators: phranque

Message Too Old, No Replies

Share certificate with Apache proxy server

share certificate apache proxy server

         

zzpgzz

10:30 am on Feb 21, 2011 (gmt 0)

10+ Year Member



After studying some instructions I've managed to setup a reverse proxy server with Apache for the first time. My problem is that I need to share a certificate to the users that are suppose to login to a secure site without having the certificate installed locally on their PC.

I've received a certificate for this but it's a .p12 file and it seems like I need a .crt and .key file if I understand the apache documentation correctly.

I would like to know if it's possible to share the .p12 certificate somehow or if I need to convert the file into .crt and .key somehow?
Thankful for any tips and example code.

zzpgzz

12:31 pm on Feb 25, 2011 (gmt 0)

10+ Year Member



I have figured out to convert the .p12 certificate to .pem and use the SSLProxyMachineCertificateFile command. However trying to access the login site with the certificate (127.0.0.1/login) gives a cannot find server, the page cannot be displayed error.

Here's some of the config I used in apache:

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

sslproxyengine on
SSLProxyMachineCertificateFile C:/apache2.2/test.pem
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /login [www2.myloginsite.se...]
ProxyPassReverse /login [www2.myloginsite.se...]