{"id":1158,"date":"2009-09-17T20:20:09","date_gmt":"2009-09-18T01:20:09","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=1158"},"modified":"2009-09-17T20:50:10","modified_gmt":"2009-09-18T01:50:10","slug":"apache-2-ssl-proxy","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=1158","title":{"rendered":"Apache 2 SSL Proxy"},"content":{"rendered":"<span id=\"Configuration\"><h2>Configuration<\/h2><\/span>\n<span id=\"Edit_httpd.conf\"><h3>Edit httpd.conf<\/h3><\/span>\n<pre lang=\"batch\">\r\nLoadModule ssl_module modules\/mod_ssl.so\r\nLoadModule proxy_module modules\/mod_proxy.so\r\nLoadModule proxy_connect_module modules\/mod_proxy_connect.so\r\nLoadModule proxy_http_module modules\/mod_proxy_http.so\r\n\r\nListen 443\r\nNameVirtualHost *:443\r\n<VirtualHost *:443>\r\n  ServerName http:\/\/localhost\r\n  # Serving https\r\n  SSLEngine on\r\n  SSLCertificateFile C:\/certs\/localhost.cer\r\n  SSLCertificateKeyFile C:\/localhost.key\r\n\r\n  ProxyRequests Off\r\n\r\n  <Proxy *>\r\n    Order deny,allow\r\n    Allow from all\r\n  <\/Proxy>\r\n\r\n  SSLProxyEngine on\r\n  SSLProxyCACertificateFile       \"C:\/certs\/cacert.pem\"\r\n  # Need BOTH public key AND unencrypted private key:\r\n  SSLProxyMachineCertificateFile  \"C:\/certs\/localhost_privatekey_publickey.txt\"\r\n  SSLProxyVerifyDepth             10\r\n  SSLProxyVerify                  none\r\n\r\n  # Proxy to app1.my.com:8080\r\n  ProxyPass \/app1\/ https:\/\/app1.my.com:8080\/\r\n  ProxyPassReverse \/app1\/ https:\/\/app1.my.com:8080\/\r\n<\/VirtualHost>\r\n<\/pre>\n<span id=\"Troubleshooting\"><h2>Troubleshooting<\/h2><\/span>\n<span id=\"incomplete_client_cert_configured_for_SSL_proxy_missing_or_encrypted_private_key\"><h3>incomplete client cert configured for SSL proxy (missing or encrypted private key?)<\/h3><\/span>\n<p>* Need BOTH public key AND unencrypted private key pasted together<\/p>\n<pre>SSLProxyMachineCertificateFile  \"C:\/certs\/localhost_privatekey_publickey.txt\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Configuration Edit httpd.conf LoadModule ssl_module modules\/mod_ssl.so LoadModule proxy_module modules\/mod_proxy.so LoadModule proxy_connect_module modules\/mod_proxy_connect.so LoadModule proxy_http_module modules\/mod_proxy_http.so Listen 443 NameVirtualHost *:443 ServerName http:\/\/localhost # Serving https SSLEngine on SSLCertificateFile C:\/certs\/localhost.cer SSLCertificateKeyFile C:\/localhost.key ProxyRequests Off Order deny,allow Allow from all SSLProxyEngine on SSLProxyCACertificateFile &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=1158\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21,55],"tags":[],"class_list":["post-1158","post","type-post","status-publish","format-standard","hentry","category-apache","category-ssl"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-iG","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1158"}],"version-history":[{"count":3,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1158\/revisions"}],"predecessor-version":[{"id":1160,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1158\/revisions\/1160"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}