Advertisement
alexs77

SAN-CSR.sh

Sep 21st, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. openssl req -new -newkey rsa:2048 -nodes -sha256 -out beispiel.swiss.csr -keyout beispiel.swiss.key -subj "/CN=beispiel.swiss" -config <(
  2. cat <<-EOF
  3. [req]
  4. default_bits = 2048
  5. default_md = sha256
  6. req_extensions = req_ext
  7. distinguished_name = dn
  8. [ dn ]
  9. [ req_ext ]
  10. subjectAltName = @alt_names
  11. [alt_names]
  12. DNS.1 = beispiel.swiss
  13. DNS.2 = www.beispiel.swiss
  14. EOF
  15. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement