os/ossrv/ssl/tsrc/topenssl/data/test.cnf
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
#
sl@0
     2
# SSLeay example configuration file.
sl@0
     3
# This is mostly being used for generation of certificate requests.
sl@0
     4
#
sl@0
     5
sl@0
     6
RANDFILE		= ./.rnd
sl@0
     7
sl@0
     8
####################################################################
sl@0
     9
[ ca ]
sl@0
    10
default_ca	= CA_default		# The default ca section
sl@0
    11
sl@0
    12
####################################################################
sl@0
    13
[ CA_default ]
sl@0
    14
sl@0
    15
dir		= ./demoCA		# Where everything is kept
sl@0
    16
certs		= $dir/certs		# Where the issued certs are kept
sl@0
    17
crl_dir		= $dir/crl		# Where the issued crl are kept
sl@0
    18
database	= $dir/index.txt	# database index file.
sl@0
    19
new_certs_dir	= $dir/new_certs	# default place for new certs.
sl@0
    20
sl@0
    21
certificate	= $dir/CAcert.pem 	# The CA certificate
sl@0
    22
serial		= $dir/serial 		# The current serial number
sl@0
    23
crl		= $dir/crl.pem 		# The current CRL
sl@0
    24
private_key	= $dir/private/CAkey.pem# The private key
sl@0
    25
RANDFILE	= $dir/private/.rand	# private random number file
sl@0
    26
sl@0
    27
default_days	= 365			# how long to certify for
sl@0
    28
default_crl_days= 30			# how long before next CRL
sl@0
    29
default_md	= md5			# which md to use.
sl@0
    30
sl@0
    31
# A few difference way of specifying how similar the request should look
sl@0
    32
# For type CA, the listed attributes must be the same, and the optional
sl@0
    33
# and supplied fields are just that :-)
sl@0
    34
policy		= policy_match
sl@0
    35
sl@0
    36
# For the CA policy
sl@0
    37
[ policy_match ]
sl@0
    38
countryName		= match
sl@0
    39
stateOrProvinceName	= match
sl@0
    40
organizationName	= match
sl@0
    41
organizationalUnitName	= optional
sl@0
    42
commonName		= supplied
sl@0
    43
emailAddress		= optional
sl@0
    44
sl@0
    45
# For the 'anything' policy
sl@0
    46
# At this point in time, you must list all acceptable 'object'
sl@0
    47
# types.
sl@0
    48
[ policy_anything ]
sl@0
    49
countryName		= optional
sl@0
    50
stateOrProvinceName	= optional
sl@0
    51
localityName		= optional
sl@0
    52
organizationName	= optional
sl@0
    53
organizationalUnitName	= optional
sl@0
    54
commonName		= supplied
sl@0
    55
emailAddress		= optional
sl@0
    56
sl@0
    57
####################################################################
sl@0
    58
[ req ]
sl@0
    59
default_bits		= 512
sl@0
    60
default_keyfile 	= testkey.pem
sl@0
    61
distinguished_name	= req_distinguished_name
sl@0
    62
encrypt_rsa_key		= no
sl@0
    63
sl@0
    64
[ req_distinguished_name ]
sl@0
    65
countryName			= Country Name (2 letter code)
sl@0
    66
countryName_default		= AU
sl@0
    67
countryName_value		= AU
sl@0
    68
sl@0
    69
stateOrProvinceName		= State or Province Name (full name)
sl@0
    70
stateOrProvinceName_default	= Queensland
sl@0
    71
stateOrProvinceName_value	=
sl@0
    72
sl@0
    73
localityName			= Locality Name (eg, city)
sl@0
    74
localityName_value		= Brisbane
sl@0
    75
sl@0
    76
organizationName		= Organization Name (eg, company)
sl@0
    77
organizationName_default	= 
sl@0
    78
organizationName_value		= CryptSoft Pty Ltd
sl@0
    79
sl@0
    80
organizationalUnitName		= Organizational Unit Name (eg, section)
sl@0
    81
organizationalUnitName_default	=
sl@0
    82
organizationalUnitName_value	= .
sl@0
    83
sl@0
    84
commonName			= Common Name (eg, YOUR name)
sl@0
    85
commonName_value		= Eric Young
sl@0
    86
sl@0
    87
emailAddress			= Email Address
sl@0
    88
emailAddress_value		= eay@mincom.oz.au