Alternc  latest
Alternc logiel libre pour l'hébergement
ssl.conf
Go to the documentation of this file.
1 # ############################################################################
2 # WARNING : this file is overwritten by alternc.install.
3 # Edit /etc/alternc/templates/apache2/mods-available/ instead.
4 # ############################################################################
5 
6 <IfModule mod_ssl.c>
7 #
8 # Pseudo Random Number Generator (PRNG):
9 # Configure one or more sources to seed the PRNG of the SSL library.
10 # The seed data should be of good random quality.
11 # WARNING! On some platforms /dev/random blocks if not enough entropy
12 # is available. This means you then cannot use the /dev/random device
13 # because it would lead to very long connection times (as long as
14 # it requires to make more entropy available). But usually those
15 # platforms additionally provide a /dev/urandom device which doesn't
16 # block. So, if available, use this one instead. Read the mod_ssl User
17 # Manual for more details.
18 #
19 SSLRandomSeed startup builtin
20 SSLRandomSeed startup file:/dev/urandom 512
21 SSLRandomSeed connect builtin
22 SSLRandomSeed connect file:/dev/urandom 512
23 
24 ##
25 ## SSL Global Context
26 ##
27 ## All SSL configuration in this context applies both to
28 ## the main server and all SSL-enabled virtual hosts.
29 ##
30 
31 #
32 # Some MIME-types for downloading Certificates and CRLs
33 #
34 AddType application/x-x509-ca-cert .crt
35 AddType application/x-pkcs7-crl .crl
36 
37 # Pass Phrase Dialog:
38 # Configure the pass phrase gathering process.
39 # The filtering dialog program (`builtin' is a internal
40 # terminal dialog) has to provide the pass phrase on stdout.
41 SSLPassPhraseDialog builtin
42 
43 # Inter-Process Session Cache:
44 # Configure the SSL Session Cache: First the mechanism
45 # to use and second the expiring timeout (in seconds).
46 # (The mechanism dbm has known memory leaks and should not be used).
47 #SSLSessionCache dbm:${APACHE_RUN_DIR}/ssl_scache
48 SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
49 SSLSessionCacheTimeout 300
50 
51 # Semaphore:
52 # Configure the path to the mutual exclusion semaphore the
53 # SSL engine uses internally for inter-process synchronization.
54 SSLMutex file:${APACHE_RUN_DIR}/ssl_mutex
55 
56 # SSL Cipher Suite:
57 # List the ciphers that the client is permitted to negotiate. See the
58 # ciphers(1) man page from the openssl package for list of all available
59 # options.
60 # Enable only secure ciphers:
61 #SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
62 SSLCipherSuite ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!3DES:+HIGH:+MEDIUM
63 # Other possible ciphersuite (requires wheezy-version of apache2 at least)
64  #SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
65 
66 # Speed-optimized SSL Cipher configuration:
67 # If speed is your main concern (on busy HTTPS servers e.g.),
68 # you might want to force clients to specific, performance
69 # optimized ciphers. In this case, prepend those ciphers
70 # to the SSLCipherSuite list, and enable SSLHonorCipherOrder.
71 # Caveat: by giving precedence to RC4-SHA and AES128-SHA
72 # (as in the example below), most connections will no longer
73 # have perfect forward secrecy - if the server's key is
74 # compromised, captures of past or future traffic must be
75 # considered compromised, too.
76 #SSLCipherSuite RC4-SHA:AES128-SHA:HIGH:MEDIUM:!aNULL:!MD5
77 SSLHonorCipherOrder on
78 
79 # enable only secure protocols: SSLv3 and TLSv1, but not SSLv2
80 #SSLProtocol all -SSLv2
81 SSLProtocol all -SSLv2 -SSLv3
82 
83 # Allow insecure renegotiation with clients which do not yet support the
84 # secure renegotiation protocol. Default: Off
85 #SSLInsecureRenegotiation on
86 
87 # Whether to forbid non-SNI clients to access name based virtual hosts.
88 # Default: Off
89 SSLStrictSNIVHostCheck Off
90 
91 </IfModule>