Tag Archives: ssl

OpenSSL enabled but not working

Questions: I am running Apache 2.2.13 and PHP 5.2.12. Just installed PHP 5.2.12 manually (to have access to all extensions) and enabled OpenSSL. phpinfo() indicates OpenSSL is enabled and running OpenSSL 0.9.8k 25 Mar 2009. I’m getting this error: PHP Fatal error: Call to undefined function ftp_ssl_connect(). I’ve seen where the PHP manual suggests ‘ftp_ssl_connect()… Read More »

SSL based virtual host with django and mod_wsgi

Questions: I have a django web application in which some URLs are allowed to be accessed over http while others have to be over http-secure only. I need to set up the virtualHost/ mod_wsgi configuration in my apache conf file, so that the same web application can be accessed over both. I followed these 2… Read More »

maven is “unable to find valid certification path to requested target” – letsencrypt ssl certificate

Questions: I recently switched to letsencrypt certificates for my maven repo (Artifactory behind Apache proxy). Repo access via browser works fine, showing no problems with the certificate (screenshot below). It also works if I import the certificate manually into the java keystore. But according to this SO question, Java should accept letsencrypt certificates starting with… Read More »

Importing SSL Certificate into Eclipse

Questions: How do you import an SSL certificate created by java into a project in Eclipse? Answers: Probably you want to import a “fake” SSL cert in JRE’s trustcacerts for avoiding not-a-valid-certificate issues. Isn’t it? As Jon said, you can do the job with keytool: keytool -import -alias <provide_an_alias> -file <certificate_file> -keystore <your_path_to_jre>/lib/security/cacerts Use “changeit”… Read More »

ClassLoader getResourceAsStream returns null

Questions: My project directory structure (in Eclipse): MyProject/ src/ –> “source directory” on Eclipse’s classpath/buildpath com.me.myapp Driver myconfig.txt In Driver, I have the following code: public class Driver { public static void main(String[] args) { InputStream is = ClassLoader.getSystemClassLoader.getResourceAsStream(“myconfig.txt”); if(is == null) System.out.println(“input stream is null”); else System.out.println(“input stream is NOT null :-)”); } }… Read More »

Ubuntu 14.04 Apache + SSL server, how to configure Varnish

Questions: I have a Magento running on a Ubuntu 14.04 server with Apache2 and SSL. I have installed Varnish but not sure how to set it up with SSL without using Nginx. this is my current vhost file ; <VirtualHost *:443> ServerName mysite.com ServerAlias www.mysite.com ServerAdmin webmaster@localhost DocumentRoot /var/www/mysite.com <Directory /var/www/mysite.com/> Options Indexes FollowSymLinks MultiViews… Read More »

Shiny Server on NGINX with SSL

Questions: I have a Shiny Server, R ‘shiny’ package v7.0, NGINX and 3rd party SSL certificate set up on Ubuntu 12.04 64bit system. Everything worked fine when using http, but after I set up a SSL reverse proxy with NGINX – the server.R files stopped working – I don’t see anything happening. I see only… Read More »

How do I set GIT_SSL_NO_VERIFY for specific repos only?

Questions: I have to use a git server without proper certificates, but I don’t want to have to do env GIT_SSL_NO_VERIFY=true git command every single time I do a git operation. But I would also like to leave SSL enabled for other git repositories. Is there a way to make this local to a single… Read More »

Finding Resources with PathMatchingResourcePatternResolver and URLClassloader in JARs

Questions: I am trying to load all resources with a specific file-extension which are loaded dynamically at runtime using a URLClassloader. Unfortunately the PathMatchingResourcePatternResolver return no Resources when I use the pattern classpath*:/*.myextension. When I specify a file with its complete name like classpath*:/test.myextension the resource gets loaded, so I think the Classloader is configured… Read More »