Это старая версия документа.
Авторизация в административный интерфейс по сертификату
vim /etc/ssl/openssl.cnf
[ ca ] default_ca = CA # The default ca section [ CA ] dir = /usr/home/pigich/SSL/ # 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. certificate = $dir/CA/ca.crt # The CA certificate serial = $dir/serial # The current serial number #crlnumber = $dir/crlnumber # the current crl number must be # commented out to leave a V1 CRL crl = $dir/CA/ca.crl # The current CRL private_key = $dir/CA/ca.key # The private key x509_extensions = usr_cert default_days = 365 # how long to certify for default_crl_days= 30 # how long before next CRL default_md = sha1 # which md to use. preserve = no # keep passed DN ordering policy = policy_match
# For the CA policy [ policy_match ] countryName = match stateOrProvinceName = match organizationName = match organizationalUnitName = optional commonName = supplied emailAddress = optional # For the 'anything' policy [ policy_anything ] countryName = optional stateOrProvinceName = optional localityName = optional organizationName = optional organizationalUnitName = optional commonName = supplied emailAddress = optional [ req ] default_md = sha1 distinguished_name = req_distinguished_name [ req_distinguished_name ] countryName = Country Name (2 letter code) countryName_default = UA countryName_min = 2 countryName_max = 2 stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = IF localityName = Locality Name (eg, city) localityName_default = city 0.organizationName = Organization Name (eg, company) 0.organizationName_default = Org_name organizationalUnitName = Organizational Unit Name (eg, section) commonName = Common Name (eg, hostname) commonName_max = 64 emailAddress = Email Address emailAddress_default = test emailAddress_max = 64 [ server ] basicConstraints=CA:FALSE nsCertType = server keyUsage = nonRepudiation, digitalSignature, keyEncipherment subjectKeyIdentifier=hash authorityKeyIdentifier=keyid,issuer [ client ] basicConstraints=CA:FALSE nsCertType = client keyUsage = nonRepudiation, digitalSignature, keyEncipherment subjectKeyIdentifier=hash authorityKeyIdentifier=keyid,issuer [ v3_req ] basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment [ v3_ca ] subjectKeyIdentifier=hash authorityKeyIdentifier=keyid:always,issuer:always basicConstraints = CA:true nsCertType = sslCA [ crl_ext ] authorityKeyIdentifier=keyid:always,issuer:always