=========================================================================================================
Setp2:SSL证书生成::参考:http://www.open-open.com/lib/view/open1392018954614.html
=========================================================================================================
1、生成keypair
keytool -genkeypair -alias cas -keyalg RSA -storepass changeit
默认情况下,生成的 keystore 就是用户目录下的 .keystore 文件。对于 Win8 而言,默认的用户目录为 C:\Users\用户名。
立即学习“PHP免费学习笔记(深入)”;
生成keypair的时候,信息随便输入即可,最后选择“y”,然后直接回车,不要输入密码
2、从 keystore 中导出证书
keytool -exportcert -alias cas -file cas.crt -storepass changeit
3、导入证书
keytool -importcert -alias cas -file cas.crt -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -storepass changeit -noprompt
4、双击执行运行证书!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号