Signing a certificate with my CA

前端 未结 6 1296
忘掉有多难
忘掉有多难 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:34

    Promoting mbrownnyc's comment to an answer, as it was useful to me and deserves more attention.

    I believe /usr/ssl/openssl.cnf contains a policy called policy_anything that contains the above setup. You can use it by utilizing the policy argument as follows:

    openssl ca -policy policy_anything -days 365 -out /root/ca/certs/out.pem -in certreq.csr 
    

提交回复
热议问题