SSL_ERROR_BAD_CERT_DOMAIN

SSL certificate is valid only for website without www I set my site with SSL certificate. It is on posidonia.ga but if I connect then Firefox shows this warning: “”Websites guarantee their identity through certificates. Firefox does not consider this site reliable as it uses a certificate that is not valid for www.posidonia.ga. The certificate … Read more

Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The problem appears when your server has self signed certificate. To workaround it you can add this certificate to the list of trusted certificates of your JVM. In this article author describes how to fetch the certificate from your browser and add it to cacerts file of your JVM. You can either edit JAVA_HOME/jre/lib/security/cacerts file or run you … Read more

SSL peer shut down incorrectly in Java

That is a problem of security protocol. I am using TLSv1 but the host accept only TLSv1.1 and TLSv1.2 then I changed the protocol in Java with the instruction below: System.setProperty(“https.protocols”, “TLSv1.1”);

HTTPS connection Python

Python 2.x: docs.python.org/2/library/httplib.html: Note: HTTPS support is only available if the socket module was compiled with SSL support. Python 3.x: docs.python.org/3/library/http.client.html: Note HTTPS support is only available if Python was compiled with SSL support (through the ssl module). To verify if SSL is enabled, try:

How to connect to FTP over TLS/SSL (FTPS) server in Java

The SimpleFTP class/library does not support TLS/SSL at all. Use the FTPSClient class from the Apache Commons Net library instead. See the official example for the FTPClient class and just substitute the FTPClient with the FTPSClient. The FTPSClient class defaults to an explicit TLS/SSL (recommended). In a rare case you need an implicit TLS/SSL, use new FTPSClient(true).

Simple Java HTTPS server

What I eventually used was this: To generate a keystore: See also here. Potentially storepass and keypass might be different, in which case the ks.load and kmf.init must use storepass and keypass, respectively.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)