使用openssl生成PKCS#8私钥

时间:2018-06-27 06:25:41

标签: openssl rsa pkcs#1 pkcs#8

是否可以直接使用 public void setrelax(){ CountDownTimer yourCountDownTimer1 = new CountDownTimer(50000, 1000) { public void onTick(long millisUntilFinished1) { itotalsnozee--; TextToSpeechFunction(" "+itotalsnozee); } public void onFinish() { itotalsnozee=fitotalsnozee; isrelax=false; TextToSpeechFunction("do again"); } };yourCountDownTimer1.start(); } 生成PKCS#8私钥,还是必须先用openssl生成PKCS#1私钥然后进行转换?

1 个答案:

答案 0 :(得分:6)

您可以直接执行以下操作:

$ openssl genpkey -out rsakey.pem -algorithm RSA -pkeyopt rsa_keygen_bits:2048

在此处查看手册页:

https://www.openssl.org/docs/man1.1.0/apps/genpkey.html