Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Listen 5454
  2.  
  3. <VirtualHost *:5454>
  4.  
  5. SSLProxyEngine on
  6. SSLProxyVerifyDepth 10
  7. SSLProxyMachineCertificateChainFile "/path/to/ca/ca.crt"
  8. SSLProxyMachineCertificateFile "/path/to/cert/cert_and_key.pem"
  9. SSLProxyVerify require
  10.  
  11. ProxyRequests Off
  12.  
  13. <Proxy *>
  14. Require all granted
  15. </Proxy>
  16.  
  17. ProxyPass / https://example.com/
  18. ProxyPassReverse / https://example.com/
  19.  
  20. </VirtualHost>
  21.  
  22. curl http://localhost:5454
  23.  
  24. Listen 5454
  25.  
  26. <VirtualHost *:5454>
  27.  
  28. SSLProxyEngine on
  29. SSLProxyVerifyDepth 10
  30. SSLProxyMachineCertificateChainFile "/path/to/ca/ca.crt"
  31. SSLProxyMachineCertificateFile "/path/to/cert/cert_and_key.pem"
  32. SSLProxyVerify require
  33.  
  34. ProxyRequests On
  35.  
  36. <Proxy *>
  37. Require all granted
  38. </Proxy>
  39.  
  40. </VirtualHost>
  41.  
  42. curl --proxy http://localhost:5454 https://www.example.com
  43. curl: (56) NSS: client certificate not found (nickname not specified)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement