Project

Profile

Help

Issue #5955 » ssl.conf

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

 
1
Listen 443
2
<IfModule mod_ssl.c>
3
  SSLRandomSeed startup builtin
4
  SSLRandomSeed startup file:/dev/urandom 512
5
  SSLRandomSeed connect builtin
6
  SSLRandomSeed connect file:/dev/urandom 512
7

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

    
11
  SSLPassPhraseDialog builtin
12
  SSLSessionCache "shmcb:/var/cache/mod_ssl/scache(512000)"
13
  SSLSessionCacheTimeout 300
14
  Mutex default
15
  SSLCryptoDevice builtin
16
  SSLHonorCipherOrder On
17
  SSLUseStapling Off
18
  SSLStaplingCache "shmcb:/run/httpd/ssl_stapling(32768)"
19
  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
20
  SSLProtocol all -SSLv2 -SSLv3
21
  SSLOptions StdEnvVars
22
</IfModule>
23

    
24

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

    
28
  ## Vhost docroot
29
  DocumentRoot "/var/www"
30

    
31

    
32
ProxyRequests Off
33
ProxyPreserveHost On
34
ProxyPass /pulp/api/v3/ http://localhost:24817/pulp/api/v3/ retry=0
35
ProxyPassReverse /pulp/api/v3/ http://localhost:24817/pulp/api/v3/
36

    
37

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

    
42
  ## Proxy rules
43
  ProxyRequests Off
44
  ProxyPreserveHost On
45
  ProxyPass /pulp !
46
  ProxyPass /streamer !
47
  ProxyPass /pub !
48
  ProxyPass / http://localhost:3000/ retry=0
49
  ProxyPassReverse / http://localhost:3000/
50
  ProxyPass / http://localhost:6006/ retry=0
51
  ProxyPassReverse / http://localhost:6006/
52

    
53
  ## SSL directives
54
  SSLEngine on
55
RequestHeader set SSL_CLIENT_I_DN "%{SSL_CLIENT_I_DN}s"
56
RequestHeader set SSL_CLIENT_VERIFY "%{SSL_CLIENT_VERIFY}s"
57
RequestHeader set SSL_SERVER_S_DN_OU "%{SSL_SERVER_S_DN_OU}s"
58
RequestHeader set SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}s"
59
RequestHeader set SSL_CLIENT_S_DN_X509 "%{SSL_CLIENT_S_DN_X509}s"
60
  SSLCertificateFile      "/etc/pki/katello/certs/katello-apache.crt"
61
  SSLCertificateKeyFile   "/etc/pki/katello/private/katello-apache.key"
62
  SSLVerifyClient         optional
63
  SSLCACertificateFile    "/etc/pki/katello/certs/katello-default-ca.crt"
64
  SSLVerifyDepth          3
65
  SSLOptions +StdEnvVars
66

    
67
  # SSL Proxy directives
68
  SSLProxyEngine On
69

    
70

    
71

    
72

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

    
77
</VirtualHost>
78

    
(1-1/2)