Skip to content
Advertisement

Tag: ssl

Reloading a java.net.http.HttpClient’s SSLContext

I’ve got a program that makes use of the java.net.http.HttpClient, which was introduced in Java 11, to connect and send requests to internal services. These services are mutually authenticated, both presenting certificates issued by an internal CA. For example, On our hosts, the client’s certificate and private key get rotated pretty regularly, more often than the host or application gets

How can i solve [Received fatal alert: bad_certificate]?

I’ve created two servers locally, and I’m going to apply a mutual authentication to their communication. I just don’t know what the problem is. I lack understanding of this mechanism, but I also lack understanding of the server itself. Create each key store Export to X.509 to register certificate in Truststore. Register each other’s certificates in Truststore. server’s application.properties client’s

Install CA root certificate at runtime in JRE 1.8.0_51

I’m working with JRE 1.8.0_51 (I cannot change this), which does not include the root certificate for Let’s Encrypt in lib/security/cacerts (it is added in 1.8.0_141) I need to add the certificate at runtime, and I have found this code to do that: This runs without throwing any error, but causes one of following things to happen: The LE certificate

Communication link failure in mysql jdbc driver

I’am not able to establish connection with mysql from java using this code It’s throwing me this error The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The driver has not received any packets from the server. No appropriate protocol (protocol is disabled or cipher suites are

Java 11.0.11 SSL handshake fails with exception ‘No common named group’

We have developed a server application in Java 11 that accepts incoming HTTPS connections from clients. All was working fine up to/including Java 11.0.10 (AdoptOpenJDK). After an upgrade to Java 11.0.11 we are having connection handshake issues (javax.net.ssl.SSLProtocolException: No common named group) with connections from Chrome clients. Firefox clients have no problems. After enabling SSL logs (-Djavax.net.debug=ssl:handshake) we can see

Certificate subject for doesn’t contain a common name and does not have alternative names

I have generated a SSL self-signed certificate using the following commands one-by-one in remote ubuntu machine via terminal: T I’ve added the server.crt onto my local machine’s cacerts using keytool in command prompt as admin. Also added the server.crt onto ‘Trusted Root Certification Authorities’. he issue is that HTTPS request to the remote ubuntu machine server on Postman works fine

SSL Windows Certification Error on Tomcat 9

SSL is enabled in my server Tomcat 7.0.108. I enabled it according to this answer https://stackoverflow.com/a/48883483 My Connector in serverx.xml is : But, in Tomcat 9.0.45 same configuration has an error. Is anyone enable SSL with Tomcat 9 using Windows Certs? Answer The error is caused by the SSLImplementation selected by Tomcat: the OpenSSLImplementation requires direct access to the private

Advertisement