InstallCert
InstallCert copied to clipboard
Java program to retrieve server certificate that can be added to local keystore
When I run InstallCert.java file as Java main Application, I am able to successfully run and get the certificate from my server without any issue. But running it in a...
Compiled (java 8). Then ran with: `java InstallCert localhost:3000` Getting: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message at sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:448) at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:174) at sun.security.ssl.SSLTransport.decode(SSLTransport.java:110) at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1279) at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1188) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:401) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)...
java InstallCert github.com 443 Loading KeyStore C:\Program Files\Java\jre1.8.0_101\lib\security\cacerts... Exception in thread "main" java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source) at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source) at sun.security.provider.KeyStoreDelegator.engineLoad(Unknown Source)...
We are getting handsake error exception.
trying to install cert in jdk7, getting the following Exception javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)...
Following steps dont work in windows, (Works in mac even without keytool import). Might not be related to `InstallCert.java` but java installation on windows itself. ```bash git clone https://github.com/escline/InstallCert javac...
Hi. I think this is more a question than an issue. Thing is, I'm trying to use InstallCert to resolve a problem I'm having with another extension (https://github.com/ashwanthkumar/gocd-slack-build-notifier/issues/81) but I...
I made some modifications to be able to configure proxy in command line. java -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3128 InstallCert dl.google.com:443 Please allow me to commit changes. Copy of new code attached. [InstallCert.zip](https://github.com/escline/InstallCert/files/1165103/InstallCert.zip)
```bash java InstallCert some-endpoint.net:443 Loading KeyStore /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/lib/security/cacerts... Opening connection to some-endpoint.net:443... Starting SSL handshake... javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target...
https://github.com/escline/InstallCert/blob/master/InstallCert.java#L64 returns: ``` Usage: java InstallCert [:port] [passphrase] ``` notice how `hostname` is missing. Please update this line to: ``` Usage: java InstallCert [:port] [passphrase] ``` or something along those...