Convert the Java Keytools certificate to Openssl PEM file or keytools to export the private key file, keytoolspem
The process and operation of requesting a certificate from a Godaddy user was mentioned above;
Because Incapsula is used for https protection, you need to customize the certificate when adding a website. You need to upload the private key information. Because the public key can be generated through keytool, You need to export the private key information;
The export procedure is as follows:
I. Install openssl and openssl-devel:
Yum-y install openssl-devel
Ii. You can use keytool to export the Certificate file cer format. The tomcat. keystore File Password is generated before 1234567:
/Usr/java/jre/bin/keytool-export-alias tomcat-storepass 1234567-file server. cer-keystore tomcat. keystore
Iii. Switch server. cer To The PKCS Certificate file through kyetools, and prompt that a password is required. Enter the password and define the key password when generating the key:
/Usr/java/jre/bin/keytool-v-importkeystore-srckeystore tomcat. keystore-srcalias tomcat-destkeystore my12.p12-deststoretype PKCS12
4. Use openssl to convert a pkcs file to a PEM file:
Openssl pkcs12-in my12.p12-out private. pem
Then, when the incapsula needs to upload the key, upload pprivate. pem to access the file;
There may be additional steps in the previous steps, but because everything is normal, please do not spray!