Share certificate with Apache proxy server

Discussion in 'Apache' started by Zaby, Feb 21, 2011.

  1. #1
    After studyin some instructions I've managed to setup a reverse proxy server with Apache for the first time. My problem is that I need 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.

    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.
     
    Zaby, Feb 21, 2011 IP
  2. Zaby

    Zaby Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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 https://www2.myloginsite.se/login.do
    ProxyPassReverse /login https://www2.myloginsite.se/login.do
     
    Zaby, Feb 25, 2011 IP