File:
[LON-CAPA] /
loncom /
request_ssl_key.sh
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Thu Nov 18 23:25:10 2004 UTC (19 years, 9 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_X,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_1_3,
version_2_1_2,
version_2_1_1,
version_2_1_0,
version_2_0_X,
version_2_0_99_1,
version_2_0_2,
version_2_0_1,
version_2_0_0,
version_1_99_3,
version_1_99_2,
version_1_99_1_tmcc,
version_1_99_1,
version_1_99_0_tmcc,
version_1_99_0,
version_1_3_X,
version_1_3_3,
version_1_3_2,
version_1_3_1,
version_1_3_0,
version_1_2_99_1,
version_1_2_99_0,
HEAD
- adding Ron's request ssl key script
1: #!/bin/bash
2:
3: MAILADDR=certificate@lon-capa.org # Email the cert request here.
4: DESTDIR=/home/httpd/lonCerts # Destination for the key file.
5: DESTUID=www # Who will own the private key.
6: DESTGROUP=www # Gropu that owns the private key.
7:
8: openssl req -newkey rsa:1024 -passout pass:loncapa \
9: -keyout lonKey.enc -keyform PEM \
10: -out CertRequest.pem -outform PEM
11:
12: openssl rsa -passin pass:loncapa -in lonKey.enc -out lonKey.pem
13:
14: install -d -m 0750 -o $DESTUID -g $DESTGROUP $DESTDIR
15: install -m 0400 -o $DESTUID -g $DESTGROUP lonKey.pem $DESTDIR
16: rm lonKey.{enc,pem}
17:
18: mail <CertRequest.pem -s "Certificate Request" $MAILADDR
19: rm CertRequest.pem
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>