keytool -validity 365 -genkey -v -alias das -keyalg RSA -keystore D:\key\asdc.keystore -dname "CN=电子文件中心,OU=档案馆,O=档案馆,L=Haidian,ST=changsha,c=cn" -storepass 123456 -keypass 123456 keytool -export -v -alias das -keystore D:\key\asdc.keystore -storepass 123456 -rfc -file D:\key\asdc.cer
https://www.cnblogs.com/icewee/articles/3703310.html