月額480円〜の高速レンタルサーバー ColorfulBox

Apache Modern Profile+OpenSSL

apache 2.4.18 | modern profile | OpenSSL 1.0.1e
Oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8

1<VirtualHost *:443>
2    ...
3    SSLEngine on
4    SSLCertificateFile      /path/to/signed_certificate_followed_by_intermediate_certs
5    SSLCertificateKeyFile   /path/to/private/key
6 
7    # Uncomment the following directive when using client certificate authentication
8    #SSLCACertificateFile    /path/to/ca_certs_for_client_authentication
9 
10 
11    # HSTS (mod_headers is required) (15768000 seconds = 6 months)
12    Header always set Strict-Transport-Security "max-age=15768000"
13    ...
14</VirtualHost>
15 
16# modern configuration, tweak to your needs
17SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1
18SSLCipherSuite          ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
19SSLHonorCipherOrder     on
20SSLCompression          off
21SSLSessionTickets       off
22 
23# OCSP Stapling, only in httpd 2.3.3 and later
24SSLUseStapling          on
25SSLStaplingResponderTimeout 5
26SSLStaplingReturnResponderErrors off
27SSLStaplingCache        shmcb:/var/run/ocsp(128000)

Nginx Modern Profile + OpenSSL

nginx 1.10.1 | modern profile | OpenSSL 1.0.1e
Oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8

1server {
2    listen 80 default_server;
3    listen [::]:80 default_server;
4 
5    # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
6    return 301 https://$host$request_uri;
7}
8 
9server {
10    listen 443 ssl http2;
11    listen [::]:443 ssl http2;
12 
13    # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
14    ssl_certificate /path/to/signed_cert_plus_intermediates;
15    ssl_certificate_key /path/to/private_key;
16    ssl_session_timeout 1d;
17    ssl_session_cache shared:SSL:50m;
18    ssl_session_tickets off;
19 
20    # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits
21    ssl_dhparam /path/to/dhparam.pem;
22 
23    # modern configuration. tweak to your needs.
24    ssl_protocols TLSv1.2;
25    ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
26    ssl_prefer_server_ciphers on;
27 
28    # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
29    add_header Strict-Transport-Security max-age=15768000;
30 
31    # OCSP Stapling ---
32    # fetch OCSP records from URL in ssl_certificate and cache them
33    ssl_stapling on;
34    ssl_stapling_verify on;
35 
36    ## verify chain of trust of OCSP response using Root CA and Intermediate certs
37    ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates;
38 
39    resolver <IP DNS resolver>;
40 
41    ....
42}