본문 바로가기

업무관련

Openssl 명령어

관리

openssl verify -verbose -purpose sslserver -CAfile [CA인증서] [도메인 인증서]

 

<cert, private key 일치 확인>

openssl x509 -noout -modulus -in bgbtt_shlibaosi_cn.crt | openssl md5

openssl rsa -noout -modulus -in bgbtt_shlibaosi_cn.key | openssl md5

 

<암호화된 cert 또는 private key 푸는 명령어>

  • openssl x509 -outform der -in certificate.pem -out certificate.crt (Cert Key)
  • openssl rsa -in [file1.key] -out [file2.key] (Private Key)

<Connect Domain>

openssl s_client -connect www.feistyduck.com:443

 

<SAN List 뽑기>

openssl x509 -noout -text -in mandeline.crt | grep DNS

 

<PFX to PEM>

openssl pkcs12 -in file.pfx -out file.pem -nodes

 

Chain 검색 사이트

https://whatsmychaincert.com/

 

생성

<Public & Private 키페어 생성> - 2048비트 키페어

openssl genrsa -out private_key.pem 2048

 

<Public키 추출>

openssl rsa -pubout -in private_key.pem -out public_key.pem

 

'업무관련' 카테고리의 다른 글

Preflight Request(부제 CORS, OPTIONS Method )  (0) 2020.09.10
Linux 명령어로 Log Parsing하기  (0) 2020.03.08
No-Cache vs No-Store  (0) 2019.07.12