version 1.1, 2005/03/22 08:57:42
|
version 1.4, 2005/04/08 05:46:01
|
|
|
echo "L = Reading" >> %PEGASUS_CONFIG_DIR/ssl.cnf | echo "L = Reading" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
echo "O = The Open Group" >> %PEGASUS_CONFIG_DIR/ssl.cnf | echo "O = The Open Group" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
echo "OU = The OpenPegasus Project" >> %PEGASUS_CONFIG_DIR/ssl.cnf | echo "OU = The OpenPegasus Project" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
echo "CN = `uname -n`" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
echo "CN = `host \`hostname\`|cut -d\" \" -f1`" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
chmod 400 %PEGASUS_CONFIG_DIR/ssl.cnf | chmod 400 %PEGASUS_CONFIG_DIR/ssl.cnf |
chown root %PEGASUS_CONFIG_DIR/ssl.cnf | chown root %PEGASUS_CONFIG_DIR/ssl.cnf |
fi | fi |
| |
%OPENSSL_BIN/openssl req -x509 -days 356 -newkey rsa:2048 \ |
%OPENSSL_BIN/openssl req -x509 -days 3650 -newkey rsa:2048 \ |
-nodes -config %PEGASUS_CONFIG_DIR/ssl.cnf \ | -nodes -config %PEGASUS_CONFIG_DIR/ssl.cnf \ |
-keyout %PEGASUS_PEM_DIR/key.pem -out %PEGASUS_PEM_DIR/cert.pem \ | -keyout %PEGASUS_PEM_DIR/key.pem -out %PEGASUS_PEM_DIR/cert.pem \ |
2>>%INSTALL_LOG |
2>>%PEGASUS_INSTALL_LOG |
| |
cat %PEGASUS_PEM_DIR/key.pem > %PEGASUS_PEM_DIR/key-2048.pem | cat %PEGASUS_PEM_DIR/key.pem > %PEGASUS_PEM_DIR/key-2048.pem |
chmod 400 %PEGASUS_PEM_DIR/key-2048.pem | chmod 400 %PEGASUS_PEM_DIR/key-2048.pem |
|
|
chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE | chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE |
fi | fi |
| |
|
/usr/lib/lsb/install_initd /etc/init.d/tog-pegasus |
|
|
echo " To start Pegasus manually:" | echo " To start Pegasus manually:" |
echo " /etc/init.d/tog-pegasus start" | echo " /etc/init.d/tog-pegasus start" |
echo " Stop it:" | echo " Stop it:" |