SSL Key 생성 » 이력 » 버전 1
SANGKYU KANG, 2018-04-20 10:49 오전
1 | 1 | SANGKYU KANG | h1. SSL Key 생성 |
---|---|---|---|
2 | |||
3 | 웹 서비스 제공 시 SSL연결 (HTTPS 연결)을 하기 위한 인증서를 생성한다. |
||
4 | |||
5 | <pre> |
||
6 | -> 생성된 키의 경로를 명확히 한다. |
||
7 | openssl genrsa -out /root/ssl_key/ambari.key 2048 |
||
8 | |||
9 | -> 키를 내보낼 때 passphrase를 묻는데 비워둘 수 있다. |
||
10 | openssl req -new -key /root/ssl_key/ambari.key -out /root/ssl_key/ambari.csr |
||
11 | |||
12 | openssl x509 -req -days 365 -in /root/ssl_key/ambari.csr -signkey /root/ssl_key/ambari.key -out /root/ssl_key/ambari.crt |
||
13 | </pre> |