Skip to content

Instantly share code, notes, and snippets.

View galan's full-sized avatar
🏳️‍🌈

Daniel Galán y Martins galan

🏳️‍🌈
View GitHub Profile
@galan
galan / timezones.txt
Created November 7, 2017 13:39
Java supported Timezones JDK8 u144
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@galan
galan / import-letsencrypt-java.sh
Last active August 9, 2024 12:34
Imports the letsencrypt certificates into the java keystore
#!/bin/bash -e
# JAVA_HOME can be passed as argument if not set
if [ ! -d $JAVA_HOME ]; then
JAVA_HOME=${1}
fi
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
if [ ! -f "$KEYSTORE" ]; then
echo "Keystore not found in '$KEYSTORE'"
exit 1