Skip to content

Instantly share code, notes, and snippets.

View buffrr's full-sized avatar
🔒

Buffrr buffrr

🔒
View GitHub Profile
@buffrr
buffrr / x509-dane.md
Last active August 30, 2024 23:23
Generate an x509 certificate and a TLSA record with openssl

Creating a self-signed certificate for example.com (if you already have a certificate you can skip this step):

openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes \
  -keyout cert.key -out cert.crt -extensions ext  -config \
  <(echo "[req]"; 
    echo distinguished_name=req; 
    echo "[ext]";
 echo "keyUsage=critical,digitalSignature,keyEncipherment";