Skip to content

Instantly share code, notes, and snippets.

View JigSawFr's full-sized avatar
👁️‍🗨️
Security

JigSaw JigSawFr

👁️‍🗨️
Security
  • France
  • 01:21 (UTC +02:00)
View GitHub Profile
@JigSawFr
JigSawFr / README.md
Created January 19, 2025 01:09 — forked from telf3/README.md
certbot-dns-cloudflare on asustor NAS

This will configure an Asustor NAS to use letsencrypt certificate without exposing it to the internet.
To achieve this we use certbot with DNS-01 challenge to Cloudflare.

  1. Setup cloudflare secret.
mkdir /volume1/system/letsencrypt
touch /volume1/system/letsencrypt/cloudflare.ini
chown root:root /volume1/system/letsencrypt
chmod 700 /volume1/system/letsencrypt
chmod 600 /volume1/system/letsencrypt/cloudflare.ini
@JigSawFr
JigSawFr / jks-to-nginx-command-list.bash
Last active October 24, 2017 14:28 — forked from pjosalgado/jks-to-nginx-command-list
How to convert Java Key Store file to pem/key for NGINX.
# 1. Convert our ".jks" file to ".p12" (PKCS12 keystore format):
/opt/applications/confluence/jre/bin/keytool -importkeystore -srckeystore /opt/applications/confluence-ssl/tomcat.keystore -destkeystore tomcat.p12 -deststoretype PKCS12
# 2. Extract pem (certificate) from ".p12" keystore file:
openssl pkcs12 -nokeys -in tomcat.p12 -out certificate-chain.pem
# 3. Extract unencrypted key file from ".p12" keystore file:
openssl pkcs12 -nocerts -nodes -in tomcat.p12 -out unencrypted-key.key