Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # This is the Apache server configuration file providing SSL support.
- # It contains the configuration directives to instruct the server how to
- # serve pages over an https connection. For detailed information about these
- # directives see <URL:http://httpd.apache.org/docs/2.4/mod/mod_ssl.html>
- #
- # Do NOT simply read the instructions in here without understanding
- # what they do. They're here only as hints or reminders. If you are unsure
- # consult the online docs. You have been warned.
- #
- # Required modules: mod_log_config, mod_setenvif, mod_ssl,
- # socache_shmcb_module (for default value of SSLSessionCache)
- #
- # Pseudo Random Number Generator (PRNG):
- # Configure one or more sources to seed the PRNG of the SSL library.
- # The seed data should be of good random quality.
- # WARNING! On some platforms /dev/random blocks if not enough entropy
- # is available. This means you then cannot use the /dev/random device
- # because it would lead to very long connection times (as long as
- # it requires to make more entropy available). But usually those
- # platforms additionally provide a /dev/urandom device which doesn't
- # block. So, if available, use this one instead. Read the mod_ssl User
- # Manual for more details.
- #
- #SSLRandomSeed startup file:/dev/random 512
- #SSLRandomSeed startup file:/dev/urandom 512
- #SSLRandomSeed connect file:/dev/random 512
- #SSLRandomSeed connect file:/dev/urandom 512
- #
- # When we also provide SSL we have to listen to the
- # standard HTTP port (see above) and to the HTTPS port
- #
- Listen 443
- # Listen [::]:443
- ##
- ## SSL Global Context
- ##
- ## All SSL configuration in this context applies both to
- ## the main server and all SSL-enabled virtual hosts.
- ##
- # SSL Cipher Suite:
- # List the ciphers that the client is permitted to negotiate,
- # and that httpd will negotiate as the client of a proxied server.
- # See the OpenSSL documentation for a complete list of ciphers, and
- # ensure these follow appropriate best practices for this deployment.
- # httpd 2.2.30, 2.4.13 and later force-disable aNULL, eNULL and EXP ciphers,
- # while OpenSSL disabled these by default in 0.9.8zf/1.0.0r/1.0.1m/1.0.2a.
- # SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
- # SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
- SSLOptions +StrictRequire +StdEnvVars -ExportCertData
- # SSLCipherSuite TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256
- # SSLCipherSuite 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
- SSLCipherSuite SSL ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384
- SSLCipherSuite TLSv1.3 TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384
- # By the end of 2016, only TLSv1.2 ciphers should remain in use.
- # Older ciphers should be disallowed as soon as possible, while the
- # kRSA ciphers do not offer forward secrecy. These changes inhibit
- # older clients (such as IE6 SP2 or IE8 on Windows XP, or other legacy
- # non-browser tooling) from successfully connecting.
- #
- # To restrict mod_ssl to use only TLSv1.2 ciphers, and disable
- # those protocols which do not support forward secrecy, replace
- # the SSLCipherSuite and SSLProxyCipherSuite directives above with
- # the following two directives, as soon as practical.
- # SSLCipherSuite HIGH:MEDIUM:!SSLv3:!kRSA
- # SSLProxyCipherSuite HIGH:MEDIUM:!SSLv3:!kRSA
- # User agents such as web browsers are not configured for the user's
- # own preference of either security or performance, therefore this
- # must be the prerogative of the web server administrator who manages
- # cpu load versus confidentiality, so enforce the server's cipher order.
- SSLHonorCipherOrder on
- SSLCompression off
- SSLSessionTickets off
- # Disable the Domain lookup, and allow Non-SNI to reach primary domain
- SSLStrictSNIVHostCheck off
- # SSL Protocol support:
- # List the protocol versions which clients are allowed to connect with.
- # Disable SSLv3 by default (cf. RFC 7525 3.1.1). TLSv1 (1.0) should be
- # disabled as quickly as practical. By the end of 2016, only the TLSv1.2
- # protocol or later should remain in use.
- # SSLProtocol all -SSLv3
- # SSLProxyProtocol all -SSLv3
- SSLProtocol -all +TLSv1.2 +TLSv1.3
- SSLProxyProtocol -all +TLSv1.2 +TLSv1.3
- <IfModule headers_module>
- Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
- </IfModule>
- # Pass Phrase Dialog:
- # Configure the pass phrase gathering process.
- # The filtering dialog program (`builtin' is an internal
- # terminal dialog) has to provide the pass phrase on stdout.
- SSLPassPhraseDialog builtin
- <IfModule socache_shmcb_module>
- # OCSP Stapling, only in httpd 2.3.3 and later
- # Définit si les nouveaux certificats doivent avoir le drapeau OCSP Must Staple activé.
- SSLUseStapling on
- SSLStaplingResponderTimeout 5
- SSLStaplingReturnResponderErrors off
- SSLStaplingErrorCacheTimeout 60
- # Inter-Process Session Cache:
- # Configure the SSL Session Cache: First the mechanism
- # to use and second the expiring timeout (in seconds).
- #SSLSessionCache "dbm:logs/ssl_scache"
- SSLSessionCache "shmcb:${SRVROOT}/logs/ssl_scache(512000)"
- SSLSessionCacheTimeout 300
- # For SSLStapling
- SSLStaplingCache "shmcb:${SRVROOT}/logs/ssl_stapling(512000)"
- </IfModule>
- <IfModule !socache_shmcb_module>
- # OCSP Stapling, only in httpd 2.3.3 and later
- # Définit si les nouveaux certificats doivent avoir le drapeau OCSP Must Staple activé.
- SSLUseStapling on
- SSLStaplingResponderTimeout 5
- SSLStaplingReturnResponderErrors off
- SSLStaplingErrorCacheTimeout 60
- # Inter-Process Session Cache:
- # Configure the SSL Session Cache: First the mechanism
- # to use and second the expiring timeout (in seconds).
- SSLSessionCache "dbm:${SRVROOT}/logs/ssl_scache"
- SSLSessionCacheTimeout 300
- # For SSLStapling
- SSLStaplingCache "dbm:${SRVROOT}/logs/ssl_stapling"
- </IfModule>
- # Pour la configuration Cloudflare
- SSLCACertificateFile D:/Certificats/origin-pull-ca.pem
- # ECDH support
- SSLOpenSSLConfCmd ECDHParameters secp384r1
- SSLOpenSSLConfCmd Curves secp521r1:secp384r1
Advertisement