1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
|
#
# OpenSSL configuration file: Two-level hierarchy
#
# Root-+
# |
# +-UserCerts (end user certs for S/MIME e-mail protection and
# | client authentication)
# |
# +-AuthCerts (solely for strong authentication with SSL/TLS)
# |
# +-ServerCerts (solely for server certificates with SSL/TLS)
# |
# +-CodeSigning (solely for code signing, Authenticode etc.)
RANDFILE = "$ENV::HOME/.rnd"
oid_file = /etc/openssl/.oid
oid_section = new_oids
[ new_oids ]
# We can add new OIDs in here for use by 'ca' and 'req'.
# Add a simple OID like this:
# testoid1=1.2.3.4
# Or use config file substitution like this:
# testoid2=${testoid1}.5.6
dnQualifier = 2.5.4.46
surName = 2.5.4.4
givenName = 2.5.4.42
initials = 2.5.4.43
generationQualifier = 2.5.4.44
userID = 0.9.2342.19200300.100.1.1
####################################################################
[ ca ]
Root = CA_Root
EmailCerts = CA_EmailCerts
AuthCerts = CA_AuthCerts
CodeSigning = CA_CodeSigning
ServerCerts = CA_ServerCerts
####################################################################
[ CA_Root ]
dir = /usr/local/myCA/Root# Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
new_certs_dir = $dir/newcerts # default place for new certs.
pend_reqs_dir = "" # default place for new unconfirmed cert reqs.
new_reqs_dir = "" # default place for new cert reqs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
RANDFILE = $dir/private/.rand # private random number file
default_days = 730 # how long to certify for
default_crl_days= 5 # how long before next CRL
default_md = sha1 # which md to use.
preserve = no # keep passed DN ordering
policy = policy_CA
ca_x509_extfile = /etc/openssl/cacert_Root.cnf
x509_extensions = x509v3_ext_CA # This section is only used for
# displaying the params in ca-index.py
[ CA_EmailCerts ]
dir = /usr/local/myCA/EmailCerts # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
new_certs_dir = $dir/newcerts # default place for new certs.
pend_reqs_dir = $dir/pendreqs # default place for new unconfirmed cert reqs.
new_reqs_dir = $dir/newreqs # default place for new cert reqs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
RANDFILE = $dir/private/.rand # private random number file
default_days = 200 # how long to certify for
default_crl_days= 2 # how long before next CRL
default_md = sha1 # which md to use.
preserve = no # keep passed DN ordering
policy = policy_EmailCerts
x509_extensions = x509v3_ext_EmailCerts
signedby = Root
ca_x509_extfile = /etc/openssl/cacert_EmailCerts.cnf
req = req_EmailCerts
min_key_size = 768
[ CA_AuthCerts ]
dir = /usr/local/myCA/AuthCerts # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
new_certs_dir = $dir/newcerts # default place for new certs.
pend_reqs_dir = $dir/pendreqs # default place for new unconfirmed cert reqs.
new_reqs_dir = $dir/newreqs # default place for new cert reqs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
RANDFILE = $dir/private/.rand # private random number file
default_days = 200 # how long to certify for
default_crl_days= 2 # how long before next CRL
default_md = sha1 # which md to use.
preserve = no # keep passed DN ordering
policy = policy_AuthCerts
x509_extensions = x509v3_ext_AuthCerts
signedby = Root
ca_x509_extfile = /etc/openssl/cacert_AuthCerts.cnf
req = req_AuthCerts
[ CA_CodeSigning ]
dir = /usr/local/myCA/CodeSigning # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
new_certs_dir = $dir/newcerts # default place for new certs.
pend_reqs_dir = $dir/pendreqs # default place for new unconfirmed cert reqs.
new_reqs_dir = $dir/newreqs # default place for new cert reqs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
RANDFILE = $dir/private/.rand # private random number file
default_days = 200 # how long to certify for
default_crl_days= 5 # how long before next CRL
default_md = sha1 # which md to use.
preserve = no # keep passed DN ordering
policy = policy_CodeSigning
x509_extensions = x509v3_ext_CodeSigning
signedby = Root
ca_x509_extfile = /etc/openssl/cacert_CodeSigning.cnf
req = req_EmailCerts
[ CA_ServerCerts ]
dir = /usr/local/myCA/ServerCerts # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
new_certs_dir = $dir/newcerts # default place for new certs.
pend_reqs_dir = $dir/pendreqs # default place for new unconfirmed cert reqs.
new_reqs_dir = $dir/newreqs # default place for new cert reqs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
RANDFILE = $dir/private/.rand # private random number file
default_days = 60 # how long to certify for
default_crl_days= 2 # how long before next CRL
default_md = sha1 # which md to use.
preserve = no # keep passed DN ordering
policy = policy_ServerCerts
x509_extensions = x509v3_ext_ServerCerts
signedby = Root
ca_x509_extfile = /etc/openssl/cacert_ServerCerts.cnf
########################### Policies ###############################
[ policy_EmailCerts ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = supplied
organizationalUnitName = optional
commonName = supplied
emailAddress = supplied
[ policy_AuthCerts ]
organizationName = supplied
organizationalUnitName = optional
userID = supplied
#emailAddress = supplied
[ policy_CodeSigning ]
countryName = match
stateOrProvinceName = match
localityName = match
organizationName = match
organizationalUnitName = optional
commonName = supplied
userID = optional
emailAddress = supplied
[ policy_ServerCerts ]
countryName = supplied
stateOrProvinceName = optional
localityName = supplied
organizationName = supplied
organizationalUnitName = optional
commonName = supplied
####################################################################
[ req ]
default_bits = 1024
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
# attributes = req_attributes
[ req_distinguished_name ]
countryName = country ISO code
countryName_default = DE
countryName_min = 2
countryName_max = 2
countryName_regex = "[a-zA-Z][a-zA-Z]"
stateOrProvinceName = State/Province Name
stateOrProvinceName_default = ""
localityName = Location
localityName_default = Karlsruhe
organizationName = Organization
organizationName_default = "Your Organization"
organizationalUnitName = Organizational Unit Name
organizationalUnitName_default = Department One,Department Two,Department Three
commonName = Common Name
commonName_max = 64
emailAddress = Email Address
emailAddress_default = ""
emailAddress_max = 64
emailAddress_regex = "^([\w@.=/_ +-]+)@([\w-]+)(\.[\w-]+)*$"
[ req_attributes ]
challengePassword = A challenge password
challengePassword_min = 4
challengePassword_max = 20
# unstructuredName = An optional company name
####################################################################
[ req_EmailCerts ]
distinguished_name = req_distinguished_name_EmailCerts
[ req_distinguished_name_EmailCerts ]
countryName = country ISO code
countryName_default = "DE"
countryName_min = 2
countryName_max = 2
countryName_regex = "[a-zA-Z][a-zA-Z]"
stateOrProvinceName = State/Province Name
stateOrProvinceName_default = ""
localityName = Location
localityName_default = Karlsruhe
organizationName = Organization
organizationName_default = "Your Organization"
organizationalUnitName = Organizational Unit Name
organizationalUnitName_default = Department One,Department Two,Department Three
commonName = Common Name
commonName_max = 64
emailAddress = Email Address
emailAddress_default = ""
emailAddress_max = 64
emailAddress_regex = "^([\w@.=/_ +-]+)@([\w-]+)(\.[\w-]+)*$"
[ req_AuthCerts ]
distinguished_name = req_distinguished_name_AuthCerts
[ req_distinguished_name_AuthCerts ]
organizationName = Organization
organizationName_default = "Your Organization"
userID = "User ID"
userID_max = 8
emailAddress = Email Address
emailAddress_default = "@ms.inka.de"
emailAddress_max = 64
emailAddress_regex = "^([\w@.=/_ +-]+)@([\w-]+)(\.[\w-]+)*$"
####################################################################
[ req_short_and_empty ]
distinguished_name = req_distinguished_name_short_and_empty
[ req_distinguished_name_short_and_empty ]
countryName = country ISO code
countryName_min = 2
countryName_max = 2
countryName_regex = "[a-zA-Z][a-zA-Z]"
stateOrProvinceName = State/Province Name
localityName = Location
organizationName = Organization
organizationalUnitName = Organizational Unit Name
commonName = Common Name
commonName_max = 64
emailAddress = Email Address
emailAddress_max = 64
emailAddress_regex = "^([\w@.=/_ +-]+)@([\w-]+)(\.[\w-]+)*$"
##############################################################################
[ x509v3_ext_CA ]
basicConstraints = CA:true
keyUsage = cRLSign,keyCertSign
crlDistributionPoints = URI:"http://localhost/pyca/get-cert.py/Root/crl.crl"
nsComment = "This certificate is used for issueing sub-CA certs."
nsBaseUrl = "https://localhost/"
nsCaRevocationUrl = pyca/get-cert.py/Root/crl.crl
nsRevocationUrl = pyca/ns-check-rev.py/Root?
nsRenewalUrl = pyca/ns-renewal.py/Root?
nsCaPolicyUrl = TestCA/policy/CA-policy.html
[ x509v3_ext_EmailCerts ]
# PKIX extensions
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
keyUsage = nonRepudiation,digitalSignature,keyEncipherment
extendedKeyUsage = emailProtection
issuerAltName = URI:"https://localhost/pyca/get-cert.py/EmailCerts/ca.crt"
crlDistributionPoints = URI:"http://localhost/pyca/get-cert.py/EmailCerts/crl.crl"
subjectAltName = email:copy
# Netscape-specific extensions
nsComment = "This certificate is used for e-mail."
nsBaseUrl = "https://localhost/"
nsCaRevocationUrl = pyca/get-cert.py/EmailCerts/crl.crl
nsRevocationUrl = pyca/ns-check-rev.py/EmailCerts?
nsRenewalUrl = pyca/ns-renewal.py/EmailCerts?
nsCaPolicyUrl = TestCA/policy/EmailCerts-policy.html
nsCertType = email
[ x509v3_ext_AuthCerts ]
# PKIX extensions
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
keyUsage = digitalSignature
extendedKeyUsage = clientAuth
issuerAltName = URI:"https://localhost/pyca/get-cert.py/AuthCerts/ca.crt"
crlDistributionPoints = URI:"http://localhost/pyca/get-cert.py/AuthCerts/crl.crl"
# Netscape-specific extensions
nsComment = "This certificate is used for strong authentication."
nsBaseUrl = "https://localhost/"
nsCaRevocationUrl = pyca/get-cert.py/AuthCerts/crl.crl
nsRevocationUrl = pyca/ns-check-rev.py/AuthCerts?
nsRenewalUrl = pyca/ns-renewal.py/AuthCerts?
nsCaPolicyUrl = TestCA/policy/AuthCerts-policy.html
nsCertType = client
[ x509v3_ext_CodeSigning ]
# PKIX extensions
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
keyUsage = digitalSignature
extendedKeyUsage = codeSigning
issuerAltName = URI:"https://localhost/pyca/get-cert.py/CodeSigning/ca.crt"
crlDistributionPoints = URI:"http://localhost/pyca/get-cert.py/CodeSigning/crl.crl"
# Netscape-specific extensions
nsComment = "This certificate is used for CodeSigning signing."
nsBaseUrl = "https://localhost/"
nsCaRevocationUrl = pyca/get-cert.py/CodeSigning/crl.crl
nsRevocationUrl = pyca/ns-check-rev.py/CodeSigning?
nsRenewalUrl = pyca/ns-renewal.py/CodeSigning?
nsCaPolicyUrl = TestCA/policy/CodeSigning-policy.html
nsCertType = objsign
[ x509v3_ext_ServerCerts ]
# PKIX extensions
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
crlDistributionPoints = URI:"http://localhost/pyca/get-cert.py/ServerCerts/crl.crl"
keyUsage = keyEncipherment
extendedKeyUsage = serverAuth,nsSGC,msSGC
# Netscape-specific extensions
nsComment = "This certificate is used for SSL ServerCerts."
nsBaseUrl = "https://localhost/"
nsCaRevocationUrl = pyca/get-cert.py/ServerCerts/crl.crl
nsRevocationUrl = pyca/ns-check-rev.py/ServerCerts?
nsRenewalUrl = pyca/ns-renewal.py/ServerCerts?
nsCaPolicyUrl = TestCA/policy/ServerCerts-policy.html
nsCertType = server
# [ pyca ] is a proprietary, non-OpenSSL section for the pyca-package
# on http://www.pyca.de/
[ pyca ]
caCertFormat = DER
# Base-URL for the other URL addresses
# This is meant as fallback option if the CA-specific
# attribute nsBaseUrl is not set
nsBaseUrl = "https://localhost/"
# Relative URL address of ca-index.py
nsCAIndexUrl = pyca/ca-index.py
# Relative URL address of client-enroll.py
nsEnrollUrl = pyca/client-enroll.py
# Relative URL address of get-cert.py
nsGetCertUrl = pyca/get-cert.py
# Relative URL address of view-cert.py
nsViewCertUrl = pyca/view-cert.py
# Pathname of the openssl executable
OpenSSLExec = /usr/bin/openssl
# Username of caadmin
userCAAdmin = caadmin
# Username of WWW Server
userWWWRun = wwwrun
# Username of mail delivery demon
userMailDaemon = daemon
# Preferred HTTP method for submitting form parameters
ScriptMethod = POST
# Relative URL address of help texts (e.g. client-enroll-help.html)
HelpUrl = inkasite/python/pyca/help/
# The default SMTP mail relay
MailRelay = localhost
# Directory for temporary files
TmpDir = /tmp
# Path to file for log output of ca-certreq-mail.py.
# The directory must be writeable for the user defined with parameter
# userMailDaemon
caCertConfirmReqLog = /var/log/pyca/ca-certreq-mail.out
# Pathname for the error log file.
# stderr is used as default, if empty or not defined.
#ErrorLog = /var/log/pyca/httpd_error_log
# E-mail address of the mail dialogue script for certificate requests
# if empty, no mail dialogue is initiated.
caCertReqMailAdr = confirm-cert-req@ms.inka.de
# Central e-mail address of the CA's administrator.
# This is used as From: address if the subject name of a CA cert does
# not contain an Email attribute.
caAdminMailAdr = caadmin@ms.inka.de
# Amount of time [h] how long a pending certificate request is stored
# in caPendCertReqDir without being confirmed by e-mail.
# Set to zero (this is the default) to disable automatic deletion of
# unconfirmed certificate requests by ca-cycle-pub.py.
caPendCertReqValid = 24
# List CA names for which certificate requests can only be created
# from an internal network (see caInternalIPAdr and caInternalDomains).
# The integrity of your PKI should not be based on such mechanisms!
caInternalCertTypes = CodeSigning
# List of network addresses/-masks which are considered internal
caInternalIPAdr = 127.0.0.0/255.0.0.0,10.0.0.0/255.0.0.0
# List of email address domains which are handled as internal
caInternalDomains = pyca.de
# List of CA names for which handling of intermediate CA certs should
# be provided.
caIntermediateCACerts = EmailCerts
# All parameters for <BODY> tag (quote " with ).
htmlBodyParam = TEXT="#000000" LINK="Red" VLINK="Green" BGCOLOR="#FFFFFF"
|