#!/bin/bash MAILADDR=certificate@lon-capa.org # Email the cert request here. DESTDIR=/home/httpd/lonCerts # Destination for the key file. DESTUID=www # Who will own the private key. DESTGROUP=www # Gropu that owns the private key. openssl req -newkey rsa:1024 -passout pass:loncapa \ -keyout lonKey.enc -keyform PEM \ -out CertRequest.pem -outform PEM openssl rsa -passin pass:loncapa -in lonKey.enc -out lonKey.pem install -d -m 0750 -o $DESTUID -g $DESTGROUP $DESTDIR install -m 0400 -o $DESTUID -g $DESTGROUP lonKey.pem $DESTDIR rm lonKey.{enc,pem} mail 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.