openssl/ca/create,sign

This commit is contained in:
Marc Beninca 2019-08-24 16:20:06 +02:00
parent 89ae174833
commit 5e965826e3
4 changed files with 41 additions and 34 deletions

View file

@ -1,5 +1,5 @@
Create a Certification Authority
================================
Create
======
init
----
@ -78,34 +78,3 @@ dirtier certificate only variant
-days 365 \
-key ca.key \
-out ca.crt
Sign request
============
.. code:: shell
openssl \
req \
-in "certificate_request.csr" \
-key "private_key.pem" \
-x509 \
-set_serial 0 \
-days 730 \
-out "certificate.crt" \
----
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

View file

@ -0,0 +1,7 @@
Certification Authority
=======================
.. toctree::
create
sign

View file

@ -0,0 +1,31 @@
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"

View file

@ -4,4 +4,4 @@ openssl
.. toctree::
dispatch
ca
ca/index