Basic website with home page, contact/feedback forms (project links do nothing)
[ndcode_site.git] / _ssl / localhost.conf
1 # The main section is named req because the command we are using is req
2 # (openssl req ...)
3 [ req ]
4 ## This specifies the default key size in bits. If not specified then 512 is
5 ## used. It is used if the -new option is used. It can be overridden by using
6 ## the -newkey option. 
7 #default_bits = 2048
8 #
9 ## This is the default filename to write a private key to. If not specified the
10 ## key is written to standard output. This can be overridden by the -keyout
11 ## option.
12 #default_keyfile = oats.key
13 #
14 ## If this is set to no then if a private key is generated it is not encrypted.
15 ## This is equivalent to the -nodes command line option. For compatibility
16 ## encrypt_rsa_key is an equivalent option. 
17 #encrypt_key = no
18
19 # This option specifies the digest algorithm to use. Possible values include
20 # md5 sha1 mdc2. If not present then MD5 is used. This option can be overridden
21 # on the command line.
22 default_md = sha1
23
24 # if set to the value no this disables prompting of certificate fields and just
25 # takes values from the config file directly. It also changes the expected
26 # format of the distinguished_name and attributes sections.
27 prompt = no
28
29 # if set to the value yes then field values to be interpreted as UTF8 strings,
30 # by default they are interpreted as ASCII. This means that the field values,
31 # whether prompted from a terminal or obtained from a configuration file, must
32 # be valid UTF8 strings.
33 utf8 = yes
34
35 # This specifies the section containing the distinguished name fields to
36 # prompt for when generating a certificate or certificate request.
37 distinguished_name = my_req_distinguished_name
38
39 # this specifies the configuration file section containing a list of extensions
40 # to add to the certificate request. It can be overridden by the -reqexts
41 # command line switch. See the x509v3_config(5) manual page for details of the
42 # extension section format.
43 req_extensions = my_extensions
44
45 [ my_req_distinguished_name ]
46 C = PT
47 ST = Lisboa
48 L = Lisboa
49 O  = Oats In The Water
50 #CN = *.oats.org
51 CN = localhost
52
53 [ my_extensions ]
54 basicConstraints=CA:FALSE
55 subjectAltName=@my_subject_alt_names
56 subjectKeyIdentifier = hash
57
58 [ my_subject_alt_names ]
59 #DNS.1 = *.oats.org
60 #DNS.2 = *.oats.net
61 #DNS.3 = *.oats.in
62 #DNS.4 = oats.org
63 #DNS.5 = oats.net
64 #DNS.6 = oats.in
65 DNS.1 = localhost
66 DNS.2 = localhost.localdomain