# # OpenSSL configuration for generation of client certificate requests. # # Environment variables 'emailAddress' **MUST** be defined or else # OpenSSL aborts: # export emailAddress=user@example.net # # To use this configuration as default: # export OPENSSL_CONF=./openssl-user.cnf # emailAddress = $ENV::emailAddress HOME = $ENV::HOME/.ssl RANDFILE = $HOME/private/.rnd oid_section = new_oids [ new_oids ] xmppAddr = 1.3.6.1.5.5.7.8.5 [ req ] default_bits = 2048 default_keyfile = $HOME/private/$emailAddress.key.pem encrypt_key = yes default_md = sha256 req_extensions = user_req_ext prompt = no distinguished_name = req_distinguished_name string_mask = utf8only utf8 = yes [ user_req_ext ] keyUsage = digitalSignature extendedKeyUsage = clientAuth, emailProtection subjectKeyIdentifier = hash subjectAltName = @subj_alt_names [ req_distinguished_name ] countryName = US stateOrProvinceName = California localityName = Los Angeles organizationName = example.net Name = John Doe emailAddress = $emailAddress [ subj_alt_names ] email = $emailAddress otherName = xmppAddr;UTF8:$emailAddress