■ openssl 명령을 사용해 RSA 개인키 파일을 생성하는 방법을 보여준다.
1. CTRL + ALT + T 키를 눌러서 [터미널]을 실행한다.
2. [터미널]에서 아래 명령을 실행한다.
▶ 실행 명령
1 2 3 4 5 6 7 8 |
king@cosmos:~$ openssl genpkey -algorithm RSA -out private_key.pem -aes256 ...+.................+...+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+...+...+................+...+...+...+......+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+................+..............+......+......+.+..+.......+...+..+.+...............+...+...........+....+..+....+...+.....+......+.+...+......+.....+.+.....+......+...+..................................+..+......+............+..........+...+...+.....+......+.+..+.......+......+...+..+.......+...+..+.......+...+..+....+..+...+................+.....+...+......+.........+.+......+...+...+..+......+.......+.....+....+........+......+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ...+...+.+...............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.+......+..+...+....+......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+..+....+.....+......+...+.......+..+.......+.....+...+......+.......+..............+.............+...........+.........+..................+..........+..+.+..+....+...+......+...........................+.....+...+....+...........+.......+..+.+..+............+.............+..+.......+.....+...+......+.+......+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Enter PEM pass phrase: Verifying - Enter PEM pass phrase: |
※ private_key.pem : 생성할 RSA 개인키 파일명
▶ private_key.pem
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
-----BEGIN ENCRYPTED PRIVATE KEY----- MIIFLTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIqRpwmrFb2E4CAggA MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBD0f34Ix7R1XBX+0E2d8zFfBIIE 0FKsHmFfQebyk8iGomppU86MFaar8iozO6rKXmoZctYApT3XsKx9JDILXUGO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