sobota, 21 lipca 2012

Jak wygenerować certyfikat SSL

Poniżej skrypt generujący certyfikat SSL:
#!/bin/bash
# 5 lat
days=1825

rm -f /tmp/cert.pem /tmp/cert.key
openssl req -new -x509 -days $days -nodes -out /tmp/cert.pem -keyout /tmp/cert.key

echo "Certyfikat wygenerowany: /tmp/cert.pem /tmp/cert.key"

Brak komentarzy:

Prześlij komentarz