DSA ํค ์์ ๋ง๋ค๊ธฐ๋ฅผ ํ๋ ค๋ฉด ์ฐ์ DSA ํ๋ผ๋ฏธํฐ ์์ฑ ํ DSA ํค ์์ ๋ง๋ค ์ ์๋ค.
๋จผ์ DSA ํ๋ผ๋ฏธํฐ๋ฅผ ์์ฑ ํ์
openssl dsaparam -out dsaparam.pem 2048
์์ฑ ๋ DSA ํ๋ผ๋ฏธํฐ
-----BEGIN DSA PARAMETERS-----
MIICKQKCAQEAz3b/DxqaD6NWa0q23jg3SJ8B/IPycYm7YClyMEh7OIqUhr0cckxm
+JosmcqD/S+vEHraQFCF05shdWVjDiY1eyxCo6S9NOgmkDsUTLHFI/5lw4Kf+cum
dd4FkMljKmSDybymg1NOggwVMQjbJ4LYS+35nktjLwGIWxo06Jjzt20AYCWpRkJo
JmLX1x2dtua1BFgdhhWinxlPNRNLVtLTcLtPgx16TuYP9NK2MvLSnJyLuAXtXWuT
ehHvDGz/TgyeUC1qwtyQeDqGTwW+9BvsjtHfwi4iMZB6sfpsxdtJ5uLrm6VGlOhZ
UxtAqGLyGbOPXc3w0+SGw5pxrVwhWW3XzQIdAJRFq12N69klBkhTc1vF43EfXiPM
b27J1wi57KMCggEBAI/FXRypqoW7efbbgcLabTLBSQAt7ybUKI/febqk3WquM6Rl
a6ms/7sqJqnmY4PRk6HCviEwDGfcCLphPXMgyXPfNJSEy/ikBovRBImQ6iXXmvk6
ZTiwH8tfDKx9gzGPChyLZB5i9lNVvKsOD2YlhpC3rDDCWH+PbKAiMZE6n56OeCpf
hrDVwMZl4upwElH/+JaNtEvHP6JWDYH7739fvQi5uxIdodzbbH9I+RAiarHghah/
uw4QHe74rEV6i5LlD0oyjW0E0Yv26UsrF1XoStruX7XZ3WuRUHw8QMFQWz1yHMqP
8ONvGll3quEhVbf79I+afI2ngiZ3kVlZSsZKaV4=
-----END DSA PARAMETERS-----
DSA ๊ฐ์ธํค ๋ง๋ค๊ธฐ
openssl gendsa -out dsaprivkey.pem dsaparam.pem
์์ฑ๋ DSA ๊ฐ์ธํค
-----BEGIN PRIVATE KEY-----
MIICXQIBADCCAjYGByqGSM44BAEwggIpAoIBAQDPdv8PGpoPo1ZrSrbeODdInwH8
g/JxibtgKXIwSHs4ipSGvRxyTGb4miyZyoP9L68QetpAUIXTmyF1ZWMOJjV7LEKj
pL006CaQOxRMscUj/mXDgp/5y6Z13gWQyWMqZIPJvKaDU06CDBUxCNsngthL7fme
S2MvAYhbGjTomPO3bQBgJalGQmgmYtfXHZ225rUEWB2GFaKfGU81E0tW0tNwu0+D
HXpO5g/00rYy8tKcnIu4Be1da5N6Ee8MbP9ODJ5QLWrC3JB4OoZPBb70G+yO0d/C
LiIxkHqx+mzF20nm4uubpUaU6FlTG0CoYvIZs49dzfDT5IbDmnGtXCFZbdfNAh0A
lEWrXY3r2SUGSFNzW8XjcR9eI8xvbsnXCLnsowKCAQEAj8VdHKmqhbt59tuBwtpt
MsFJAC3vJtQoj995uqTdaq4zpGVrqaz/uyomqeZjg9GTocK+ITAMZ9wIumE9cyDJ
c980lITL+KQGi9EEiZDqJdea+TplOLAfy18MrH2DMY8KHItkHmL2U1W8qw4PZiWG
kLesMMJYf49soCIxkTqfno54Kl+GsNXAxmXi6nASUf/4lo20S8c/olYNgfvvf1+9
CLm7Eh2h3Ntsf0j5ECJqseCFqH+7DhAd7visRXqLkuUPSjKNbQTRi/bpSysXVehK
2u5ftdnda5FQfDxAwVBbPXIcyo/w428aWXeq4SFVt/v0j5p8jaeCJneRWVlKxkpp
XgQeAhwNT8995A5/cPGtYV+I7Y61c/UbhJpeuC301REh
-----END PRIVATE KEY-----
DSA ๊ฐ์ธํค์์ ๊ณต๊ฐํค ์ถ์ถ
openssl pkey -in dsaprivkey.pem -pubout -out dsapublic.pem
์์ฑ๋ DSA ๊ณต๊ฐํค
-----BEGIN PUBLIC KEY-----
MIIDQzCCAjYGByqGSM44BAEwggIpAoIBAQDPdv8PGpoPo1ZrSrbeODdInwH8g/Jx
ibtgKXIwSHs4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๊ฐ์ธํค๋ฅผ ์์ฑ ํ๋ฉด ๊ฐ์ธํค ์์ ํ๋ผ๋ฏธํฐ ์ ๋ณด๊ฐ ํฌํจ ๋๋ค.
๋์ด์ ํ๋ผ๋ฏธํฐ ํ์ผ์ ์๊ฐ์ง๊ณ ์์ด๋ ๋๋ค.
2023.06.16 - [Manual/CertMan] - [CertMan] ๋น๋์นญ ํค ์ ( RSA, ECDSA, SM2 ) ๋ง๋ค๊ธฐ
'Manual > OpenSSL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[OpenSSL] ECDH ํค ์ ๋ (Derive Key) ๋ช ๋ น์ด (0) | 2024.04.03 |
---|---|
[OpenSSL] EdDSA ์๊ณ ๋ฆฌ์ฆ Ed25519 Ed448 ํค ์์ฑ (0) | 2023.06.14 |
[OpenSSL] ca ๋ช ๋ น์ด (0) | 2023.05.24 |
[OpenSSL] crl ๋ช ๋ น์ด (0) | 2023.05.21 |
[OpenSSL] x509 ๋ช ๋ น์ด (0) | 2023.05.20 |