Access Java based keystore directly on Sun ONE Webserver 6.1
- by George Bailey
The keystore seems to reside in one of
/opt/SUNWwbsvr/alias/https-sub.domain.ext-hostname-cert8.db
/opt/SUNWwbsvr/alias/https-sub.domain.ext-hostname-key3.db
What tool would I use to access this file? I have tried these commands which did not work.
/opt/SUNWwbsvr/bin/https/jdk/bin/keytool -certreq -keyalg RSA -file /tmp/test.csr -keystore /opt/SUNWwbsvr/alias/https-sub.domain.ext-hostname-cert8.db
/opt/SUNWwbsvr/bin/https/jdk/bin/keytool -certreq -keyalg RSA -file /tmp/test.csr -keystore /opt/SUNWwbsvr/alias/https-sub.domain.ext-hostname-key3.db
/opt/SUNWwbsvr/bin/https/jdk/bin/keytool -list -storepass password -keystore /opt/SUNWwbsvr/alias/https-sub.domain.ext-hostname-cert8.db
/opt/SUNWwbsvr/bin/https/jdk/bin/keytool -list -storepass password -keystore /opt/SUNWwbsvr/alias/https-sub.domain.ext-hostname-key3.db
They all gave me the error message
keytool error: java.io.IOException: Invalid keystore format