From 7f02473dfa11942f109d2e36160a0cbcb33bd040 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 4 Aug 2019 14:50:06 +0200 Subject: [PATCH] openssl/ed25519 --- in/public/security/openssl/index.rst | 34 ++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/in/public/security/openssl/index.rst b/in/public/security/openssl/index.rst index 78c218e..e328d72 100644 --- a/in/public/security/openssl/index.rst +++ b/in/public/security/openssl/index.rst @@ -5,6 +5,9 @@ OpenSSL Generate private key ==================== +RSA +--- + .. code:: shell openssl \ @@ -19,8 +22,30 @@ Human readable: openssl \ rsa \ -in "private_key.pem" \ - -noout \ -text \ + -noout \ + > "private_key.txt" + +ED25519 +------- + +.. code:: shell + + openssl \ + genpkey \ + -algorithm ED25519 \ + > "private_key.pem" + +Human readable: + +.. code:: shell + + openssl \ + pkey \ + -in "private_key.pem" \ + -text \ + -noout \ + > "private_key.txt" Generate a certificate request ============================== @@ -56,9 +81,9 @@ Generate a certificate request openssl \ req \ -new \ - -key "private_key.pem" \ - -out "certificate_request.csr" \ -utf8 \ + -key "private_key.pem" \ + -out "certificate_request.csr" Human readable: @@ -67,8 +92,9 @@ Human readable: openssl \ req \ -in "certificate_request.csr" \ - -noout \ -text \ + -noout \ + > "certificate_request.txt" Create a Certification Authority ================================