rtfd/docs/public/openssl/ca/sign.rst

32 lines
446 B
ReStructuredText
Raw Normal View History

2019-08-24 14:20:06 +00:00
Sign certificate request
========================
from CA key & certificate
-------------------------
.. code:: shell
openssl \
x509 \
-CA ca.crt \
-CAkey ca.key \
-req \
-in "client.csr" \
-days 365 \
-out "client.crt" \
-set_serial nn
from proper CA
--------------
.. code:: shell
openssl \
req \
-in "certificate_request.csr" \
-key "private_key.pem" \
-x509 \
-set_serial 0 \
-days 730 \
-out "certificate.crt"