Skip to content

Instantly share code, notes, and snippets.

@theking2
Created May 30, 2026 18:57
Show Gist options
  • Select an option

  • Save theking2/b40fa4df3f3780fe8d74edff55284aa8 to your computer and use it in GitHub Desktop.

Select an option

Save theking2/b40fa4df3f3780fe8d74edff55284aa8 to your computer and use it in GitHub Desktop.
Create a signed security.txt file
# Basic usage
./create_signed_security_txt.sh -d example.com -c "mailto:security@example.com" -k ABC12345
# Full example with all options
./create_signed_security_txt.sh \
-d example.com \
-c "mailto:security@example.com" \
-k ABC12345 \
-e "https://example.com/pgp-key.asc" \
-a "https://example.com/thanks" \
-p "https://example.com/security-policy" \
-l "en,es,fr" \
-t "2025-12-31"
# Create without automatic installation
./create_signed_security_txt.sh -d example.com -c "https://example.com/contact" -k ABC12345 --no-install
# Specify custom output directory
./create_signed_security_txt.sh -d example.com -c "mailto:security@example.com" -k ABC12345 -o /custom/path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment