cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

protocol:openssl:sslsan.html



OpenSSL - How to use OpenSSL

02. How to Create SSL SAN Certificate Using OpenSSL

How to Generate a CSR and Private Key

cat > req.txt <<-EOF
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn

[ dn ]
C  = JP
ST = Tokyo
L  = Shibuya-ku
O  = Example, Inc.
OU = IT
CN = www.example.com

[ req_ext ]
subjectAltName = @alt_names

[ alt_names ]
NS.1 = www.example.com
NS.2 = example.com
NS.3 = test.example.com
EOF
openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.csr -config req.txt


How to Check CSR

openssl req -text -in example.com.csr


Check your certificate with Web Tools






OpenSSL - How to use OpenSSL




protocol/openssl/sslsan.html.txt ยท Last modified: 2018/02/24 by admin

Page Tools