os/ossrv/ssl/tsrc/topenssl/data/test.cnf
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ssl/tsrc/topenssl/data/test.cnf	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,88 @@
     1.4 +#
     1.5 +# SSLeay example configuration file.
     1.6 +# This is mostly being used for generation of certificate requests.
     1.7 +#
     1.8 +
     1.9 +RANDFILE		= ./.rnd
    1.10 +
    1.11 +####################################################################
    1.12 +[ ca ]
    1.13 +default_ca	= CA_default		# The default ca section
    1.14 +
    1.15 +####################################################################
    1.16 +[ CA_default ]
    1.17 +
    1.18 +dir		= ./demoCA		# Where everything is kept
    1.19 +certs		= $dir/certs		# Where the issued certs are kept
    1.20 +crl_dir		= $dir/crl		# Where the issued crl are kept
    1.21 +database	= $dir/index.txt	# database index file.
    1.22 +new_certs_dir	= $dir/new_certs	# default place for new certs.
    1.23 +
    1.24 +certificate	= $dir/CAcert.pem 	# The CA certificate
    1.25 +serial		= $dir/serial 		# The current serial number
    1.26 +crl		= $dir/crl.pem 		# The current CRL
    1.27 +private_key	= $dir/private/CAkey.pem# The private key
    1.28 +RANDFILE	= $dir/private/.rand	# private random number file
    1.29 +
    1.30 +default_days	= 365			# how long to certify for
    1.31 +default_crl_days= 30			# how long before next CRL
    1.32 +default_md	= md5			# which md to use.
    1.33 +
    1.34 +# A few difference way of specifying how similar the request should look
    1.35 +# For type CA, the listed attributes must be the same, and the optional
    1.36 +# and supplied fields are just that :-)
    1.37 +policy		= policy_match
    1.38 +
    1.39 +# For the CA policy
    1.40 +[ policy_match ]
    1.41 +countryName		= match
    1.42 +stateOrProvinceName	= match
    1.43 +organizationName	= match
    1.44 +organizationalUnitName	= optional
    1.45 +commonName		= supplied
    1.46 +emailAddress		= optional
    1.47 +
    1.48 +# For the 'anything' policy
    1.49 +# At this point in time, you must list all acceptable 'object'
    1.50 +# types.
    1.51 +[ policy_anything ]
    1.52 +countryName		= optional
    1.53 +stateOrProvinceName	= optional
    1.54 +localityName		= optional
    1.55 +organizationName	= optional
    1.56 +organizationalUnitName	= optional
    1.57 +commonName		= supplied
    1.58 +emailAddress		= optional
    1.59 +
    1.60 +####################################################################
    1.61 +[ req ]
    1.62 +default_bits		= 512
    1.63 +default_keyfile 	= testkey.pem
    1.64 +distinguished_name	= req_distinguished_name
    1.65 +encrypt_rsa_key		= no
    1.66 +
    1.67 +[ req_distinguished_name ]
    1.68 +countryName			= Country Name (2 letter code)
    1.69 +countryName_default		= AU
    1.70 +countryName_value		= AU
    1.71 +
    1.72 +stateOrProvinceName		= State or Province Name (full name)
    1.73 +stateOrProvinceName_default	= Queensland
    1.74 +stateOrProvinceName_value	=
    1.75 +
    1.76 +localityName			= Locality Name (eg, city)
    1.77 +localityName_value		= Brisbane
    1.78 +
    1.79 +organizationName		= Organization Name (eg, company)
    1.80 +organizationName_default	= 
    1.81 +organizationName_value		= CryptSoft Pty Ltd
    1.82 +
    1.83 +organizationalUnitName		= Organizational Unit Name (eg, section)
    1.84 +organizationalUnitName_default	=
    1.85 +organizationalUnitName_value	= .
    1.86 +
    1.87 +commonName			= Common Name (eg, YOUR name)
    1.88 +commonName_value		= Eric Young
    1.89 +
    1.90 +emailAddress			= Email Address
    1.91 +emailAddress_value		= eay@mincom.oz.au