Skip to content

Instantly share code, notes, and snippets.

@ehoppmann
Created March 19, 2017 18:07
Show Gist options
  • Save ehoppmann/5e3ff166a9a6d4d190b13ec2b455c227 to your computer and use it in GitHub Desktop.
Save ehoppmann/5e3ff166a9a6d4d190b13ec2b455c227 to your computer and use it in GitHub Desktop.
Extract all ssl https hosts from pound proxy config file in preparation for running letsencrypt
#!/bin/bash
grep -A10000000 ListenHTTPS /etc/pound/pound.cfg \
| sed -n "s/^.*HeadRequire\s*\"Host\:\.\*\(.*\)\.\*.*$/\1/p" \
> domains.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment