개발환경으로 AWS 를 사용하고 있는데 https 가 필요해서 사설인증서를 만들어 보았습니다.
도메인을 새로 만드는 방법도 있지만 외부에서 해당 도메인을 통해 접속하는 것을 막고 싶은 부분도 있었습니다.
순서는 아래와 같습니다.
$ openssl genrsa -out trufflesalt.key 2048
Generating RSA private key, 2048 bit long modulus
..............................................................+++
..+++
e is 65537 (0x10001)
$ openssl req -new -key trufflesalt.key -out trufflesalt.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) []:KR
State or Province Name (full name) []:Seoul
Locality Name (eg, city) []:Seoul
Organization Name (eg, company) []:trufflesalt
Organizational Unit Name (eg, section) []:salt
Common Name (eg, fully qualified host name) []:trufflesalt.io
Email Address []:trufflesalt@ggmail.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
이제 등록된 사설인증서를 사용하시면 됩니다.
[잡담]JDD (Ju-Dung-A-Li Driven Development/주둥아리 주도 개발) (0) | 2022.07.08 |
---|---|
[NGINX]413 Request Entity Too Large 어떻게 해결하지? (0) | 2022.06.15 |
[Github]내 레포에는 Draft pull request 가 없네 (0) | 2022.05.19 |
[Homebrew]Monterey로 업그레이드 후 brew update error (0) | 2022.03.22 |
[DNS]c-ares 는 비동기 DNS 라이브러리 (0) | 2021.10.30 |