This content has been marked as final. Show 3 replies
Weblogic has two keystores : identity (if you are doing 2 ways SSL) and trust. you should import your "external" certificate in the "trust" key store.
look at your server config to know your config : Home >Summary of Servers >AdminServer-->configuration-->keystore
I suggest that you change the default configuration (not using the demo one),
then when you know where is yo key store use the command line to add your certificate to trusted store (this is a example) :
opt/weblogic10_3_3/jdk160_18/jre/bin/keytool -import -noprompt -trustcacerts -alias BLCCertificateAuthority -file cacert2035.pem -keystore /opt/weblogic10_3_3/jdk160_18/jre/lib/security/cacerts
once your certificated is added to your trust store it should work.
I hope it will help.
You didn't answer to my guestion. I asked how can i import a private key, not certificate.
As weblogic 10.3.5 documentation says:
"While you can use the keytool utility to generate new key pairs and digital certificates and add them to a keystore, the utility does not allow you to take an existing private key from a file and import it into the keystore. Instead, use the WebLogic ImportPrivateKey utility."
Anyone any ideas? Need a working solution very badly..
Your error message says "*Exception in thread "main" java.lang.NoClassDefFoundError: utils.ImportPrivateKey*" which can only happen if you have not set your domain environment before executing java utils.ImportPrivateKey command.
set domain environment first by executing setDomainEnv.sh or setDomainEnv.cmd (for Windows) from path *$DOMAIN_HOME/bin*.