diff --git a/in/public/openssl/ca.rst b/in/public/openssl/ca/create.rst similarity index 67% rename from in/public/openssl/ca.rst rename to in/public/openssl/ca/create.rst index 3426657..2d72f1d 100644 --- a/in/public/openssl/ca.rst +++ b/in/public/openssl/ca/create.rst @@ -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 diff --git a/in/public/openssl/ca/index.rst b/in/public/openssl/ca/index.rst new file mode 100644 index 0000000..867a49f --- /dev/null +++ b/in/public/openssl/ca/index.rst @@ -0,0 +1,7 @@ +Certification Authority +======================= + +.. toctree:: + + create + sign diff --git a/in/public/openssl/ca/sign.rst b/in/public/openssl/ca/sign.rst new file mode 100644 index 0000000..96999b5 --- /dev/null +++ b/in/public/openssl/ca/sign.rst @@ -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" diff --git a/in/public/openssl/index.rst b/in/public/openssl/index.rst index a011457..50c3391 100644 --- a/in/public/openssl/index.rst +++ b/in/public/openssl/index.rst @@ -4,4 +4,4 @@ openssl .. toctree:: dispatch - ca + ca/index