Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好 #1

Open
lazy-bum opened this issue Apr 4, 2019 · 1 comment
Open

你好 #1

lazy-bum opened this issue Apr 4, 2019 · 1 comment

Comments

@lazy-bum
Copy link

lazy-bum commented Apr 4, 2019

我想问下密钥 公钥是怎么生成的

@ninghao
Copy link
Owner

ninghao commented Apr 10, 2019

在终端,先执行一下 openssl,然后执行:genrsa -out private_key.pem 2048 ,这会生成一个密钥文件,名字是 private_key.pem ,然后基于这个密钥再去生成一个公钥,执行:rsa -in private_key.pem -pubout -out public_key.pem,这个命令会生成一个公钥文件,名字是 public_key.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants