Signing a certificate with my CA

前端 未结 6 1297
忘掉有多难
忘掉有多难 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条回答
  •  猫巷女王i
    2020-12-23 14:12

    I have also run into this problem. Thanks to the replies above (mainly Francois), I discovered the source of the problem.

    openssl is encoding using UTF8STRING and keytool (Java 6) is encoding with PRINTABLESTRING.

    Worked around it by changing the openssl configuration so it matches keytool. In /usr/ssl/openssl.cnf change the "string_mask" setting to "pkix".

提交回复
热议问题