1 # $NetBSD: pkgsrc.cnf,v 1.1.1.1 2009/02/02 20:44:09 joerg Exp $
3 # OpenSSL sample configuration file for use by pkgsrc.sh
6 # This definition stops the following lines choking if HOME isn't
9 RANDFILE = $ENV::HOME/.rnd
11 ####################################################################
13 default_ca = CA_default # The default ca section
15 ####################################################################
18 dir = ./pkgsrc # Where everything is kept
19 certs = $dir/certs # Where the issued certs are kept
20 crl_dir = $dir/crl # Where the issued crl are kept
21 database = $dir/index.txt # database index file.
22 #unique_subject = no # Set to 'no' to allow creation of
23 # several ctificates with same subject.
24 new_certs_dir = $dir/newcerts # default place for new certs.
26 certificate = $dir/cacert.pem # The CA certificate
27 serial = $dir/serial # The current serial number
28 crlnumber = $dir/crlnumber # the current crl number
29 # must be commented out to leave a V1 CRL
30 crl = $dir/crl.pem # The current CRL
31 private_key = $dir/private/cakey.pem# The private key
32 RANDFILE = $dir/private/.rand # private random number file
34 # Comment out the following two lines for the "traditional"
35 # (and highly broken) format.
36 name_opt = ca_default # Subject Name options
37 cert_opt = ca_default # Certificate field options
39 # Extension copying option: use with caution.
40 # copy_extensions = copy
42 # Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs
43 # so this is commented out by default to leave a V1 CRL.
44 # crlnumber must also be commented out to leave a V1 CRL.
45 # crl_extensions = crl_ext
47 default_days = 365 # how long to certify for
48 default_crl_days= 30 # how long before next CRL
49 default_md = default # use public key default MD
50 preserve = no # keep passed DN ordering
52 # A few difference way of specifying how similar the request should look
53 # For type CA, the listed attributes must be the same, and the optional
54 # and supplied fields are just that :-)
60 stateOrProvinceName = match
61 organizationName = match
62 organizationalUnitName = optional
64 emailAddress = optional
66 # For the 'anything' policy
67 # At this point in time, you must list all acceptable 'object'
70 countryName = optional
71 stateOrProvinceName = optional
72 localityName = optional
73 organizationName = optional
74 organizationalUnitName = optional
76 emailAddress = optional
78 ####################################################################
81 default_keyfile = privkey.pem
83 distinguished_name = req_distinguished_name
84 x509_extensions = v3_ca # The extentions to add to the self signed cert
86 string_mask = utf8only
88 [ req_distinguished_name ]
89 countryName = Country Name (2 letter code)
90 countryName_default = AU
94 stateOrProvinceName = State or Province Name (full name)
95 stateOrProvinceName_default = Some-State
97 localityName = Locality Name (eg, city)
99 0.organizationName = Organization Name (eg, company)
100 0.organizationName_default = Internet Widgits Pty Ltd
102 # we can do this but it is not needed normally :-)
103 #1.organizationName = Second Organization Name (eg, company)
104 #1.organizationName_default = World Wide Web Pty Ltd
106 organizationalUnitName = Organizational Unit Name (eg, section)
107 #organizationalUnitName_default =
109 commonName = Common Name (eg, YOUR name)
112 emailAddress = Email Address
113 emailAddress_max = 64
116 nsComment = "Certificate for binary pkgsrc packages"
118 subjectKeyIdentifier=hash
119 authorityKeyIdentifier=keyid,issuer
121 subjectAltName=email:move
123 extendedKeyUsage = codeSigning, emailProtection
126 nsComment = "Certificate for pkg-vulnerabilities"
128 subjectKeyIdentifier=hash
129 authorityKeyIdentifier=keyid,issuer
131 subjectAltName=email:move
134 subjectKeyIdentifier=hash
135 authorityKeyIdentifier=keyid:always,issuer:always
136 basicConstraints = critical,CA:true