Skip to content

Instantly share code, notes, and snippets.

@genadipost
Last active June 24, 2017 17:50
Show Gist options
  • Save genadipost/f91196e83742752beb6db9e02cde509c to your computer and use it in GitHub Desktop.
Save genadipost/f91196e83742752beb6db9e02cde509c to your computer and use it in GitHub Desktop.
foreman add Subject Alternative Name
  • This script will add web-foreman.test.local SAN to the generated certificate
  • When --puppet-dns-alt-names is used, puppet and puppet.test.local SAN are not added to the web certificate, which will cause foreman deployment issues
  • Therefore puppet and puppet.test.local SAN's also added with --puppet-dns-alt-names
foreman-installer --puppet-dns-alt-names=puppet \
                  --puppet-dns-alt-names=puppet.test.local \
                  --puppet-dns-alt-names=web-foreman.test.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment