OpenSSL as a CA without touching the certs/crl/index/etc environment

前端 未结 3 578
遥遥无期
遥遥无期 2021-02-01 03:18

I think I have the right OpenSSL command to sign a certificate but I\'ve gotten stuck and the tutorials I\'ve found use a different argument format (I\'m using OpenSSL 0.9.8o 01

3条回答
  •  青春惊慌失措
    2021-02-01 03:40

    Based on snow6oy's answer, here's what I did:

    openssl x509 -req -CA CACert.pem -CAkey CAKey.pem -CAcreateserial -in YourCSR.csr -out YourCert.pem
    

    A couple optional flags that may be useful:

    • -days 1095
      (The default is 30 days)

    • -sha256
      (RHEL 7 defaults to SHA-1)

提交回复
热议问题