服务端 https和SSL

时间:2023-12-28 18:00:02

String keyStoreFilePassword = System
.getProperty("keystore.file.password");

/usr/java/jdk1.6.0_25/bin/keytool -genkey -keystore SrvKeystore -keyalg RSA

密码123456   名字姓氏 ltl  后面全部都试ltl

String keyStoreFilePath = System
.getProperty("keystore.file.path");

keyStoreFilePath="C:\\Program Files (x86)\\Java\\jre7\\lib\\security\\cacerts";

查看密钥

keytool -list -keystore "C\Program Files\java\jre8\lib\security\cacerts"

默认密码
changeit

生成keystore文件作为证书

文件位置默认在C:\Users\Administrator\.keystore

查看.keystore内容输出keytool -list