I have got two JREs in my windows 7 machine. I have executed both below listed commands and I am able to connect it btce.
keytool -import -keystore "C:/Program Files/Java/jdk1.8.0_05/jre/lib/security/cacerts" -storepass "changeit" -noprompt -alias "BTCE" -file C:/Users/Dell/Downloads/btceSERVER.cert
keytool -import -keystore "C:/Program Files/Java/jre8/lib/security/cacerts" -storepass "changeit" -noprompt -alias "BTCE" -file C:/Users/Dell/Downloads/btceSERVER.cert
Points to note:
- I have mentioned full path for the keystore
- I have not used trustcacerts
Awaiting response
Two ways I can think of to download certificate. First(using linux): echo -n | openssl s_client -connect btc-e.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/btceSERVERNAME.cert
Second(using firefox):
- Visit h t t p s:/ / btc-e.com/
- Click on the small Lock icon present in front of https in the url section. This will bring up a small popup
- Click "More information" button, this will bring up a popup window titled as "Page info",
- Click "View certificate", this will bring up certificate viewer
- In certificate viewer, select "Details" tab
- Click export button, which will bring up file save dialogue to save the cert.