bash-scripts/cert.sh
2017-12-15 00:27:28 +03:00

28 lines
446 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Caylakpenguen
# Selfsinged SSL sertifika üretir.
# apache Nginx ve Eposta sunucularında kullanılabilir Sertifika üretir.
# cert icin betik - Cts 02 Eyl 2017 13:33:35 +03
# Lisans: Gnu/Gpl
# kullanim sekli: ./cert.sh domain.com admin
DOM="$1"
openssl req -new -x509 -days 3650 -nodes \
-out "$DOM.crt" \
-newkey rsa:2048 \
-keyout "$DOM.key"<<EOF
TR
Istanbul
Istanbul
Development
Development
$DOM
$2@$DOM
EOF