Signing a certificate with my CA

前端 未结 6 1298
忘掉有多难
忘掉有多难 2020-12-23 13:39

On running:

openssl ca -in ${ALIAS}.csr -out user-cert.pem -keyfile cacert-private.pem -cert cacert.pem -passin pass:$PASSWD -config ${CONFIG}
6条回答
  •  一个人的身影
    2020-12-23 14:33

    The previous posters already answered the question, but to make it easier, here is an example how to specify the encoding. Use the string_mask:

    [ req ]
    default_bits            = 2048
    default_md              = rsa
    prompt                  = no
    string_mask             = utf8only  # <--------------
    distinguished_name      = req_distinguished_name
    
    [ req_distinguished_name ]
    countryName             = GB
    stateOrProvinceName     = Gloucestershire
    localityName            = Cheltenham
    organizationName        = Wansdyke House Limited
    organizationalUnitName  = Fizio
    commonName              = localhost
    

提交回复
热议问题