openssl/ca/create,sign
This commit is contained in:
parent
89ae174833
commit
5e965826e3
4 changed files with 41 additions and 34 deletions
|
@ -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
|
7
in/public/openssl/ca/index.rst
Normal file
7
in/public/openssl/ca/index.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
Certification Authority
|
||||
=======================
|
||||
|
||||
.. toctree::
|
||||
|
||||
create
|
||||
sign
|
31
in/public/openssl/ca/sign.rst
Normal file
31
in/public/openssl/ca/sign.rst
Normal 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"
|
|
@ -4,4 +4,4 @@ openssl
|
|||
.. toctree::
|
||||
|
||||
dispatch
|
||||
ca
|
||||
ca/index
|
||||
|
|
Loading…
Reference in a new issue