Skip to content

Instantly share code, notes, and snippets.

@xialeistudio
Created December 27, 2019 02:03
Show Gist options
  • Save xialeistudio/bd7b70c9315f673e6c61abc9f466fb52 to your computer and use it in GitHub Desktop.
Save xialeistudio/bd7b70c9315f673e6c61abc9f466fb52 to your computer and use it in GitHub Desktop.
1. 生成私钥
openssl genrsa -out client.key 4096
2、生成证书签名请求(CSR)
openssl req -new -key client.key -out client.csr
3、使用上一步的证书签名请求签发证书
openssl x509 -req -days 365 -in client.csr -signkey client.key -out client.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment