mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 09:50:09 +00:00
Update cheatsheets
This commit is contained in:
17
openssl-req
Normal file
17
openssl-req
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# openssl req
|
||||
|
||||
> OpenSSL command to manage PKCS#10 Certificate Signing Requests.
|
||||
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-req.html>.
|
||||
|
||||
- Generate a certificate signing request to be sent to a certificate authority:
|
||||
|
||||
`openssl req -new -sha256 -key {{filename.key}} -out {{filename.csr}}`
|
||||
|
||||
- Generate a self-signed certificate and a corresponding key-pair, storing both in a file:
|
||||
|
||||
`openssl req -new -x509 -newkey {{rsa}}:{{4096}} -keyout {{filename.key}} -out {{filename.cert}} -subj "{{/C=XX/CN=foobar}}" -days {{365}}`
|
||||
Reference in New Issue
Block a user