Proxy configuration for Gradle

Are you using gradle behind corporate proxy? Here is how to configure proxy data for gradle (urls and credentials) gradle.properties file Gradle (and gradlew as well) is automatically reading gradle.properties file that is either in project directory or in USER_HOME/.gradle directory. Inside of gradle.properties file set properties: systemProp.http.proxyHost=http_proxy_ip_or_url systemProp.http.proxyPort=port systemProp.http.proxyUser=username systemProp.http.proxyPassword=pwd systemProp.https.proxyHost=https_proxy_ip_or_url systemProp.https.proxyPort=port systemProp.https.proxyUser=username systemProp.https.proxyPassword=password … Continue reading Proxy configuration for Gradle

SSL Certificate with Subject Alternate Names

This post is a continuation of Creating HTTPS SSL Self Signed certificate. SSL Certificates are created for one particular 'cn'. This can be your domain name (www.example.com). Certificate Validation Exception may occur when you try to access your host another way (for example using IP address instead of domain name or accessing it from localhost). … Continue reading SSL Certificate with Subject Alternate Names

Spring Boot: SSL/HTTPS for embedded Tomcat

If your Spring Boot app is running on embedded Tomcat, you need to use the TomcatConnectionCustomizer class to set up the HTTPS in Tomcat. Get the source code Source Code for this tutorial is available on my github under the SpringBootHttps tag: https://github.com/yacekmm/looksok/tree/SpringBootHttps 1. Prepare keystore and certificate First you need to have your certificate. If you … Continue reading Spring Boot: SSL/HTTPS for embedded Tomcat

Configure SSL/HTTPS on Tomcat with Self-Signed Certificate

Regarding security, the https with SSL is a minimum requirement. Moreover it has relatively low cost in implementation. Thanks to it your transport layer will be encrypted, preventing sniffing and main in the middle attack. Thanks to it your server validity will be verified with a certificate (In this tutorial I will use self-signed certificate. … Continue reading Configure SSL/HTTPS on Tomcat with Self-Signed Certificate