Home >Backend Development >PHP Tutorial >2. Remember a failed CAS setup - certificate configuration_PHP tutorial

2. Remember a failed CAS setup - certificate configuration_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:27:19952browse

============================================== ================================================== ===========

Setp2: SSL certificate generation:: Reference: http://www.open-open.com/lib/view/open1392018954614.html

================================================== ================================================== ========

1. Generate keypair

keytool -genkeypair -alias cas -keyalg RSA -storepass changeit

By default, the generated keystore is the .keystore file in the user directory. For Win8, the default user directory is C:Users username.

When generating a keypair, just enter any information. Finally, select "y" and press Enter directly. Do not enter a password

2. Export the certificate from keystore

keytool -exportcert -alias cas -file cas.crt -storepass changeit

3. Import certificate

keytool -importcert -alias cas -file cas.crt -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -storepass changeit -noprompt

4. Double-click to execute the running certificate!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/818152.htmlTechArticle======================== ================================================== =============================== Setp2: SSL certificate generation::Reference: http://www.open-open. com/lib/view/open13...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn