PKIX path building failed
See original GitHub issueHad a running Jitsi meet on:
Centos 7
nginx 1.12.2
prosody 0.10.0
java version "1.8.0_77"
using a Let’s encrypt certificate
with the jitsi versions:
Jitsi Meet jitsi-meet_2514
Jicofo jitsi-meet_2514
Videobridge 997
After updating it to:
Jitsi Meet jitsi-meet_2971
Jicofo jitsi-meet_2971
Videobridge 1053
I get this error:
jicofo.sh[4072]: Jicofo 2018-04-19 13:39:03.931 SEVERE: [108] org.jitsi.impl.protocol.xmpp.XmppProtocolProvider.doConnect().345 Failed to connect/login: 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
jicofo.sh[4072]: org.jivesoftware.smack.SmackException: 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
jicofo.sh[4072]: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1060)
jicofo.sh[4072]: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:982)
jicofo.sh[4072]: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:998)
jicofo.sh[4072]: at java.lang.Thread.run(Thread.java:745)
jicofo.sh[4072]: Caused by: 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
jicofo.sh[4072]: at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
jicofo.sh[4072]: at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
jicofo.sh[4072]: at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
jicofo.sh[4072]: at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
jicofo.sh[4072]: at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
jicofo.sh[4072]: at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
jicofo.sh[4072]: at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
jicofo.sh[4072]: at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
jicofo.sh[4072]: at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
jicofo.sh[4072]: at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
jicofo.sh[4072]: at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
jicofo.sh[4072]: at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
jicofo.sh[4072]: at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:798)
jicofo.sh[4072]: at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1200(XMPPTCPConnection.java:150)
jicofo.sh[4072]: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1055)
...
I’ve seen that there are already some issues in here with the same error. But as I’m on centos I’m not able to e.g. delete everything and use the automatic Debian installation script.
- Was there a change somewhere between these two versions mentioned above, which could cause this issue?
- How can I manually solve this on centos?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
java - "PKIX path building failed" and "unable to find valid ...
Try to load the target URL in browser and view the site's certificate (usually it's accessible by the icon with the lock sign....
Read more >Unable to connect to SSL services due to "PKIX Path Building ...
This problem is therefore caused by a certificate that is self-signed (a CA did not sign it) or a certificate chain that does...
Read more >Solve “pkix path building failed” - Packagecloud Blog
The error “pkix path building failed” generally happens while working with Java client applications and HTTPS web services or APIs.
Read more >PKIX path building failed error message
The most common reason for this issue is the certificate is provided by an internal Root CA or is a Self-Signed Certificate. This...
Read more >Why am I getting PKIX 'path building failed' error...
PKIX stands for Public Key Infrastructure X509. Whenever Java attempts to connect to another application over SSL, the connection will only ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just a note for anyone who may stumble upon this previous comment, the correct way to use ‘cert import’ is actually to pass it a directory. Passing it the path to fullchain.pem will cause it to incorrectly use this as the key also.
So:
Prosody will find the fullchain.pem and privkey.pem itself.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.