- After logging into the console, click Servers.
- Click the server that is being deployed.
- On the Server Start tab, paste the following line into the Arguments box:-Xms4096m -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=512m
export CLASSPATH=/u01/app/jdk/lib/tools.jar:/u01/app/Oracle/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar
openssl pkcs12 -in mycertficate.pfx -out KEYSTORE.pem -nodes
get the private key and the certficate into pem a files
where:
Certificate.pem contents between below:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
Privatekey.pem contents between below
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
Make sure you have both pfx and private key files with password
/u01/app/jdk/bin/keytool -import -trustcacerts -file Certificate.pem -alias mycertficate -keystore truststore.jks -storepass changeit -keypass changeit
java utils.ImportPrivateKey -keystore keystore.jks -storepass changeit -storetype JKS -keypass changeit -alias mycertficate -certfile Certificate.pem -keyfile Privatekey.pem -keyfilepass C0mm0NC3rt##2024
Now you should have both truststore.jks and keystore.jks