Created
March 19, 2017 18:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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