Changeset 115 for bin/generate_certificate.sh
- Timestamp:
- Nov 28, 2008, 9:20:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/generate_certificate.sh
r1 r115 1 1 #!/bin/sh 2 3 cd /etc/pki/tls/certs 4 2 5 SERVER=centrala.zdechov.net 3 6 PRIVATE_KEY=$SERVER.key … … 5 8 VALID_DAYS=365 6 9 10 cd /etc/pki/tls/certs 7 11 echo Delete old private key 8 12 rm $PRIVATE_KEY 9 13 echo Create new private/public-keys without passphrase for server 10 cd /etc/pki/tls/private11 14 openssl genrsa -out $PRIVATE_KEY 1024 15 cp /etc/pki/tls/certs/$PRIVATE_KEY /etc/pki/tls/private/$PRIVATE_KEY 12 16 13 17 echo Create selfsigned certificate
Note:
See TracChangeset
for help on using the changeset viewer.