Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javax.net.ssl.SSLProtocolException: Empty issuer DN not allowed in X509Certificates #2

Open
mashangfei opened this issue Nov 25, 2021 · 0 comments

Comments

@mashangfei
Copy link

mashangfei commented Nov 25, 2021

win 下直接运行main的 new SyslogService(false).watch();后报这个错了,大佬给看下?
javax.net.ssl.SSLProtocolException: Empty issuer DN not allowed in X509Certificates
at sun.security.ssl.HandshakeMessage$CertificateMsg.(HandshakeMessage.java:456)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:757)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
at java.io.OutputStream.write(OutputStream.java:75)
at protocol.PlistSocket.sendAll(PlistSocket.java:143)
at protocol.PlistSocket.sendPacket(PlistSocket.java:106)
at protocol.PlistSocket.sendRecvPacket(PlistSocket.java:137)
at protocol.LockDown.startService(LockDown.java:56)
at servers.SyslogService.(SyslogService.java:15)
at Main.main(Main.java:8)
Caused by: java.security.cert.CertificateParsingException: Empty issuer DN not allowed in X509Certificates
at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:651)
at sun.security.x509.X509CertInfo.(X509CertInfo.java:167)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1804)
at sun.security.x509.X509CertImpl.(X509CertImpl.java:195)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:102)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
at sun.security.ssl.HandshakeMessage$CertificateMsg.(HandshakeMessage.java:453)
... 14 more
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLProtocolException: Empty issuer DN not allowed in X509Certificates
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1551)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:95)
at protocol.PlistSocket.recvAll(PlistSocket.java:152)
at protocol.PlistSocket.recvPacket(PlistSocket.java:123)
at protocol.PlistSocket.sendRecvPacket(PlistSocket.java:138)
at protocol.LockDown.startService(LockDown.java:56)
at servers.SyslogService.(SyslogService.java:15)
at Main.main(Main.java:8)
Caused by: javax.net.ssl.SSLProtocolException: Empty issuer DN not allowed in X509Certificates
at sun.security.ssl.HandshakeMessage$CertificateMsg.(HandshakeMessage.java:456)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:757)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
at java.io.OutputStream.write(OutputStream.java:75)
at protocol.PlistSocket.sendAll(PlistSocket.java:143)
at protocol.PlistSocket.sendPacket(PlistSocket.java:106)
at protocol.PlistSocket.sendRecvPacket(PlistSocket.java:137)
... 3 more
Caused by: java.security.cert.CertificateParsingException: Empty issuer DN not allowed in X509Certificates
at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:651)
at sun.security.x509.X509CertInfo.(X509CertInfo.java:167)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1804)
at sun.security.x509.X509CertImpl.(X509CertImpl.java:195)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:102)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
at sun.security.ssl.HandshakeMessage$CertificateMsg.(HandshakeMessage.java:453)
... 14 more
Exception in thread "main" exception.lockdown.StartServiceError: Unable to start service={name!r} - not paired
at protocol.LockDown.startService(LockDown.java:58)
at servers.SyslogService.(SyslogService.java:15)
at Main.main(Main.java:8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant