* Create and verify a private key

$ openssl genrsa -aes256 -out private_key.pem 2048

$ openssl rsa -noout -text - in private_key.pem


* Create a CSR

$ openssl req -new -key private_key.pem -out test.csr


* Create and verify a self-signed certificate

$ openssl x509 -in test.csr -out test.crt -req -signkey private_key.pem -days 3560

$ openssl x509 -noout -text -in test.crt


'Development > Common' 카테고리의 다른 글

Rx and Reactive Streams  (0) 2018.10.21
math  (0) 2018.05.27
Using the OpenSSL toolkit  (0) 2017.09.17
Date and Time Formats  (0) 2016.06.28
development - 개행문자  (0) 2016.03.02
매개변수(parameter)와 전달인자(argument)  (0) 2015.09.20
Posted by linuxism