oadr-ssl.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <IfModule mod_ssl.c>
  2. <VirtualHost _default_:443>
  3. ServerName # set to host name or ip address
  4. # modify these two lines to match your application set up
  5. ProxyPass / http://localhost:8080/
  6. ProxyPassReverse / Http://localhost:8080/
  7. ProxyPreserveHost On
  8. ServerAdmin webmaster@localhost
  9. # DocumentRoot /var/www/html
  10. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  11. # error, crit, alert, emerg.
  12. # It is also possible to configure the loglevel for particular
  13. # modules, e.g.
  14. #LogLevel info ssl:warn
  15. LogLevel ssl:debug
  16. ErrorLog ${APACHE_LOG_DIR}/error.log
  17. CustomLog ${APACHE_LOG_DIR}/access.log combined
  18. # SSL Engine Switch:
  19. # Enable/Disable SSL for this virtual host.
  20. SSLEngine on
  21. SSLProxyEngine On
  22. # LogLevel debug
  23. # A self-signed (snakeoil) certificate can be created by installing
  24. # the ssl-cert package. See
  25. # /usr/share/doc/apache2/README.Debian.gz for more info.
  26. # If both key and certificate are stored in the same file, only the
  27. # SSLCertificateFile directive is needed.
  28. SSLCertificateFile /etc/apache2/ssl/vtn_rsa_cert.der
  29. SSLCertificateKeyFile /etc/apache2/ssl/vtn_rsa_key.der
  30. SSLCertificateFile /etc/apache2/ssl/vtn_ecc_cert.der
  31. SSLCertificateKeyFile /etc/apache2/ssl/vtn_ecc_key.der
  32. # Certificate Authority (CA):
  33. # Set the CA certificate verification path where to find CA
  34. # certificates for client authentication or alternatively one
  35. # huge file containing all of them (file must be PEM encoded)
  36. # Note: Inside SSLCACertificatePath you need hash symlinks
  37. # to point to the certificate files. Use the provided
  38. # Makefile to update the hash symlinks after changes.
  39. SSLCACertificateFile /etc/apache2/ssl/cacert.pem
  40. RequestHeader add HTTPS %{HTTPS}s
  41. <Location /OpenADR2/ >
  42. SSLCipherSuite AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:AES128-SHA
  43. SSLVerifyClient require
  44. SSLVerifyDepth 10
  45. RequestHeader add SSL_CLIENT_S_DN_CN %{SSL_CLIENT_S_DN_CN}s
  46. RequestHeader set SSL_CLIENT_VERIFY %{SSL_CLIENT_VERIFY}s
  47. </Location>
  48. </VirtualHost>
  49. </IfModule>
  50. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet