Skip to content

Instantly share code, notes, and snippets.

@ogaty
Last active October 20, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogaty/d0e38db2d8988bcf70080af5418dceb9 to your computer and use it in GitHub Desktop.
Save ogaty/d0e38db2d8988bcf70080af5418dceb9 to your computer and use it in GitHub Desktop.
openssl

csr

openssl genrsa -out ca.key 2048
openssl req -new -key astro.ogatism.com.key -out astro.ogatism.com.csr
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:Kanagawa
Locality Name (eg, city) []:Kawasaki
Organization Name (eg, company) [Internet Widgits Pty Ltd]:ogatism
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:astro.ogatism.com
Email Address []:

ファイルの中身

openssl x509 -text -noout -in file.crt
openssl rsa -text -noout -in file.key
openssl req -text -noout -in file.csr

# 疎通確認

openssl s_client -connect test.ogatism.com:20443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment