diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-03 20:01:08 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-03 20:01:08 +0100 |
commit | 0168f18229402b299a3fb3bb6fe3edb8e3ffa7fc (patch) | |
tree | 19ffe21cf8cebf43859e00bc1ddac20593161ac5 /server/testdata/chain/README.md | |
parent | 71ed441c7d0ce507d72f02fb06679b6479fefc19 (diff) |
added chain processing with intermediate certificates
Basic test chains can be generated manually with openssl, see details in
server/testdata/x509/README.md.
Diffstat (limited to 'server/testdata/chain/README.md')
-rw-r--r-- | server/testdata/chain/README.md | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/server/testdata/chain/README.md b/server/testdata/chain/README.md deleted file mode 100644 index fc19735..0000000 --- a/server/testdata/chain/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# Create new certificate chains -A more in-depth explanation of the different commands and parameters can be -found in the man pages, e.g., `man openssl-genpkey` and `man openssl-req` - -## Root certificate -``` -# Generate ed25519 private key -$ openssl genpkey -algorithm ed25519 -out rgdd-root.key - -### -# Create and self-sign a root certificate -# -x509 => output a self-signed certificate -# -new => prompt the user for relevant field values -# -key => file to read private key from -# -days => number of days that the certificate is valid -# -out => where to write the resulting PEM-encoded certificate -### -$ openssl req -x509 -new -key rgdd-root.key -days 2048 -out rgdd-root.pem - -# View the generated certificate -$ openssl x509 -in rgdd-root.pem -text -noout -``` - -## End-entity certificates -Let's generate two different end-entity certificates. One that uses ECDSA, and -another one that uses RSA. Note that `-CAcreateserial` creates a file with the -next serial number if it does not exist. After a certificate is issued, this -number is incremented. - -### NIST P-256 -``` -$ openssl ecparam -genkey -name prime256v1 -noout -out rgdd-ecdsa.key -$ openssl req -new -key rgdd-ecdsa.key -out rgdd-ecdsa.csr -$ openssl x509 -req -in rgdd-ecdsa.csr -CA rgdd-root.pem -CAkey rgdd-root.key -CAcreateserial -out rgdd-ecdsa.pem -days 1024 -$ openssl x509 -in rgdd-ecdsa.pem -text -noout -``` - -### RSA -``` -$ openssl genrsa -out rgdd-rsa.key 4096 -$ openssl req -new -key rgdd-rsa.key -out rgdd-rsa.csr -$ openssl x509 -req -in rgdd-rsa.csr -CA rgdd-root.pem -CAkey rgdd-root.key -CAcreateserial -out rgdd-rsa.pem -days 1024 -$ openssl x509 -in rgdd-rsa.pem -text -noout -``` |