util.x509: Return sets of services per identity
[prosody.git] / certs / openssl.cnf
blobee17b1cf4960d9e9ab121b679591679cbe5344f5
1 oid_section = new_oids
3 [ new_oids ]
5 # RFC 6120 section 13.7.1.4. defines this OID
6 xmppAddr = 1.3.6.1.5.5.7.8.5
8 # RFC 4985 defines this OID
9 SRVName  = 1.3.6.1.5.5.7.8.7
11 [ req ]
13 default_bits       = 4096
14 default_keyfile    = example.com.key
15 distinguished_name = distinguished_name
16 req_extensions     = certrequest
17 x509_extensions    = selfsigned
19 # ask about the DN?
20 prompt = no
22 [ distinguished_name ]
24 commonName             = example.com
25 countryName            = GB
26 localityName           = The Internet
27 organizationName       = Your Organisation
28 organizationalUnitName = XMPP Department
29 emailAddress           = xmpp@example.com
31 [ certrequest ]
33 # for certificate requests (req_extensions)
35 basicConstraints = CA:FALSE
36 keyUsage         = digitalSignature,keyEncipherment
37 extendedKeyUsage = serverAuth,clientAuth
38 subjectAltName   = @subject_alternative_name
40 [ selfsigned ]
42 # and self-signed certificates (x509_extensions)
44 basicConstraints = CA:TRUE
45 subjectAltName = @subject_alternative_name
47 [ subject_alternative_name ]
49 # See http://tools.ietf.org/html/rfc6120#section-13.7.1.2 for more info.
51 DNS.0       =                                           example.com
52 otherName.0 =                 xmppAddr;FORMAT:UTF8,UTF8:example.com
53 otherName.1 =            SRVName;IA5STRING:_xmpp-client.example.com
54 otherName.2 =            SRVName;IA5STRING:_xmpp-server.example.com
56 DNS.1       =                                conference.example.com
57 otherName.3 =      xmppAddr;FORMAT:UTF8,UTF8:conference.example.com
58 otherName.4 = SRVName;IA5STRING:_xmpp-server.conference.example.com