Project

Profile

Help

Issue #5955 » ssl.conf

jsherril@redhat.com, 01/10/2020 05:09 PM

 
Listen 443
<IfModule mod_ssl.c>
SSLRandomSeed startup builtin
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect builtin
SSLRandomSeed connect file:/dev/urandom 512

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl

SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/var/cache/mod_ssl/scache(512000)"
SSLSessionCacheTimeout 300
Mutex default
SSLCryptoDevice builtin
SSLHonorCipherOrder On
SSLUseStapling Off
SSLStaplingCache "shmcb:/run/httpd/ssl_stapling(32768)"
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:!3DES:!DES:!DSS
SSLProtocol all -SSLv2 -SSLv3
SSLOptions StdEnvVars
</IfModule>


<VirtualHost *:443>
ServerName devel.balmora.example.com

## Vhost docroot
DocumentRoot "/var/www"


ProxyRequests Off
ProxyPreserveHost On
ProxyPass /pulp/api/v3/ http://localhost:24817/pulp/api/v3/ retry=0
ProxyPassReverse /pulp/api/v3/ http://localhost:24817/pulp/api/v3/


## Request header rules
## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader
RequestHeader set X_FORWARDED_PROTO 'https'

## Proxy rules
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /pulp !
ProxyPass /streamer !
ProxyPass /pub !
ProxyPass / http://localhost:3000/ retry=0
ProxyPassReverse / http://localhost:3000/
ProxyPass / http://localhost:6006/ retry=0
ProxyPassReverse / http://localhost:6006/

## SSL directives
SSLEngine on
RequestHeader set SSL_CLIENT_I_DN "%{SSL_CLIENT_I_DN}s"
RequestHeader set SSL_CLIENT_VERIFY "%{SSL_CLIENT_VERIFY}s"
RequestHeader set SSL_SERVER_S_DN_OU "%{SSL_SERVER_S_DN_OU}s"
RequestHeader set SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}s"
RequestHeader set SSL_CLIENT_S_DN_X509 "%{SSL_CLIENT_S_DN_X509}s"
SSLCertificateFile "/etc/pki/katello/certs/katello-apache.crt"
SSLCertificateKeyFile "/etc/pki/katello/private/katello-apache.key"
SSLVerifyClient optional
SSLCACertificateFile "/etc/pki/katello/certs/katello-default-ca.crt"
SSLVerifyDepth 3
SSLOptions +StdEnvVars

# SSL Proxy directives
SSLProxyEngine On




<Location /pulp/api/v3/>
RequestHeader set REMOTE_USER "%{SSL_CLIENT_S_DN_CN}s" env=SSL_CLIENT_S_DN
</Location>

</VirtualHost>

(1-1/2)