mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
13 lines
539 B
Markdown
13 lines
539 B
Markdown
![]() |
# openssl req
|
||
|
|
||
|
> PKCS#10 인증서 서명 요청을 관리하는 OpenSSL 명령어.
|
||
|
> 더 많은 정보: <https://www.openssl.org/docs/manmaster/man1/openssl-req.html>.
|
||
|
|
||
|
- 인증 기관에 보낼 인증서 서명 요청 생성:
|
||
|
|
||
|
`openssl req -new -sha256 -key {{파일이름.key}} -out {{파일이름.csr}}`
|
||
|
|
||
|
- 자체 서명된 인증서와 해당 키 쌍을 생성하여 파일에 저장:
|
||
|
|
||
|
`openssl req -new -x509 -newkey {{rsa}}:{{4096}} -keyout {{파일이름.key}} -out {{파일이름.cert}} -subj "{{/C=XX/CN=foobar}}" -days {{365}}`
|