ravthan / all-eyes

Automatically exported from code.google.com/p/all-eyes
0 stars 0 forks source link

Unable to connect to ae deamon from java (proxy) app #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. javac AeConnector.java
2. mkdir /home/tpari01/ssl/
     (note: this will be cleaned up for final
            package, to put in install dir)
3. cp keystore.jks to /home/tpari01
     /ssl/keystore.jks
4. Start ae deamon

What is the expected output? What do you see instead?

  -- Expect to see valid connection.

  -- Instead seeing following java error:

ubuntu@ubuntu:~/AE/all-eyes/docs$ java AeConnector 127.0.0.1 6000
HOST=[127.0.0.1]
PORT=[6000]
CREATING SOCKET...
SOCKET CREATED....
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
                at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
                at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1697)
                at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:257)
                at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:251)
                at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165)
                at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
                at sun.security.ssl.Handshaker.processLoop(Handshaker.java:609)
                at sun.security.ssl.Handshaker.process_record(Handshaker.java:545)
                at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:945)
                at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1190)
                at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1217)
                at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1201)
                at AeConnector.main(AeConnector.java:64)
Caused by: sun.security.validator.ValidatorException: PKIX path building 
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to 
find valid certification path to requested target
                at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:324)
                at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224)
                at sun.security.validator.Validator.validate(Validator.java:235)
                at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147)
                at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230)
                at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270)
                at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144)
                ... 8 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable 
to find valid certification path to requested target
                at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197)
                at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255)
                at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319)
                ... 14 more
ubuntu@ubuntu:~/AE/all-eyes/docs$ A

Original issue reported on code.google.com by heyyoul...@gmail.com on 27 Oct 2012 at 7:35

GoogleCodeExporter commented 8 years ago

Original comment by heyyoul...@gmail.com on 27 Oct 2012 at 7:37

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by heyyoul...@gmail.com on 27 Oct 2012 at 7:37

Attachments:

GoogleCodeExporter commented 8 years ago
Tom, I think this is fixed, please update bug with current instructions from 
creating the certs and running the proxy.

Original comment by heyyoul...@gmail.com on 30 Oct 2012 at 2:00

GoogleCodeExporter commented 8 years ago
This is now working.

Original comment by heyyoul...@gmail.com on 6 Nov 2012 at 8:56

GoogleCodeExporter commented 8 years ago
Verified with unit testing

Original comment by tbrt....@gmail.com on 9 Dec 2012 at 9:24