Snippets tagged “ssl”
11 snippets use this tag.
- Accept server's self-signed ssl certificate in Java clientJava
To accept a server's self-signed SSL certificate in a Java client, you can create a custom javax.net.ssl.X509TrustManager and use it to override the default trust manager.
- Can't connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?PHP
There are several possible reasons why cURL is returning a 0 length response when trying to connect to an HTTPS site.
- curl error 18 - transfer closed with outstanding read data remainingPHP
Error 18 means that the transfer was closed with outstanding read data remaining.
- Does file_get_contents() have a timeout setting?PHP
Yes, the file_get_contents function in PHP does have a timeout setting.
- Downloading a large file using curlPHP
To download a large file using curl, use the following command:
- How do I find out what keystore my JVM is using?Java
To find out which keystore the Java Virtual Machine (JVM) is using, you can use the javax.net.ssl.KeyManagerFactory class and the getDefaultAlgorithm method.
- How to import an existing X.509 certificate and private key in Java keystore to use in SSL?Java
To import an existing X.509 certificate and private key into a Java keystore, you can use the keytool utility that is included with the Java Development Kit (JDK).
- pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"Python
This error message occurs when pip is unable to verify the certificate of the website it is trying to connect to.
- Setting up SSL on a local xampp/apache serverPHP
To set up SSL on a local XAMPP/Apache server, you will need to generate a self-signed certificate, configure the Apache server to use the certificate, and then access the server using https.
- SSL and cert keystoreJava
An SSL (Secure Sockets Layer) keystore is a storage location for SSL certificates, which are used to establish secure, encrypted connections between a client and a server. The keystore is typically managed by a keystore manager, such as the Java Keytool,
- Warning about SSL connection when connecting to MySQL databaseJava
If you are getting a warning about an SSL connection when connecting to a MySQL database, it may be because you are using an older version of the MySQL client library that does not support SSL connections by default.