From 6ccc7bb16b5ec429a082642775ba0bb25101cb11 Mon Sep 17 00:00:00 2001 From: trimstray Date: Thu, 18 Apr 2019 00:30:25 +0200 Subject: [PATCH] added new 'openssl' one-liner - signed-off-by: trimstray --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index be0aa91..8d5d5b2 100644 --- a/README.md +++ b/README.md @@ -1962,6 +1962,15 @@ openssl ecparam -out ${_fd} -name ${_curve} -genkey ; \ openssl req -new -key ${_fd} -out ${_fd_csr} -sha256 ) ``` +###### Generate self-signed certificate + +```bash +# _len: 2048, 4096 +( _fd="domain.key" ; _fd_out="domain.crt" ; _len="4096" ; _days="365" ; \ +openssl req -newkey rsa:${_len} -nodes -keyout ${_fd} \ +-x509 -days ${_days} -out ${_fd_out} ) +``` + ###### Convert DER to PEM ```bash