Difference between keytool and openssl?

僤鯓⒐⒋嵵緔 提交于 2020-05-15 08:43:48

问题


We can generate certificate through keytool like this

keytool -genkey -alias initcert  -keyalg  RSA  -keystore keycloak.jks  -validity 365  -keysize 2048

and through openssl also like this

Openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj "/CN=nginxsvc/O=nginxsvc"

What is the difference between these two technique and which we should use?

来源:https://stackoverflow.com/questions/48472764/difference-between-keytool-and-openssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!