Skip to content

OpenSSL

官网

Shining Ligth

私钥

bash
openssl genpkey -algorithm Ed25519 -out private_ed25519.pem
  • genpkey 生成私钥
  • -algorithm 加密算法类型
  • -out 输出

公钥

bash
openssl pkey -in private_ed25519.pem -pubout -out public_ed25519.pem
  • -in 输入
  • -pubout 提取公钥