add new chinese translations
This commit is contained in:
16
pages.zh/common/openssl-genpkey.md
Normal file
16
pages.zh/common/openssl-genpkey.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# openssl genpkey
|
||||
|
||||
> OpenSSL 命令用于生成非对称密钥对。
|
||||
> 更多信息:<https://www.openssl.org/docs/manmaster/man1/openssl-genpkey.html>。
|
||||
|
||||
- 生成一个2048位的RSA私钥,并将其保存到指定文件:
|
||||
|
||||
`openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:{{2048}} -out {{filename.key}}`
|
||||
|
||||
- 生成一个使用曲线 `prime256v1` 的椭圆曲线私钥,并将其保存到指定文件:
|
||||
|
||||
`openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:{{prime256v1}} -out {{filename.key}}`
|
||||
|
||||
- 生成一个 `ED25519` 椭圆曲线私钥,并将其保存到指定文件:
|
||||
|
||||
`openssl genpkey -algorithm {{ED25519}} -out {{filename.key}}`
|
Reference in New Issue
Block a user