version 1.20.2.14, 2005/03/22 23:01:56
|
version 1.20.2.16, 2005/04/01 22:14:55
|
|
|
# | # |
# Package spec for PEGASUS 2.4 | # Package spec for PEGASUS 2.4 |
# | # |
%define srcRelease 2 |
%define srcRelease 3 |
Summary: OpenPegasus WBEM Services for Linux | Summary: OpenPegasus WBEM Services for Linux |
Name: tog-pegasus | Name: tog-pegasus |
Version: 2.4.1.Beta | Version: 2.4.1.Beta |
Release: 2 |
Release: 3 |
Group: Systems Management/Base | Group: Systems Management/Base |
Copyright: Open Group Pegasus Open Source | Copyright: Open Group Pegasus Open Source |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
|
|
# Generate a self signed node certificate | # Generate a self signed node certificate |
# | # |
echo " Generating SSL certificates... " | echo " Generating SSL certificates... " |
HOSTNAME=`uname -n` |
|
echo "[ req ]" > %PEGASUS_CONFIG_DIR/ssl.cnf | echo "[ req ]" > %PEGASUS_CONFIG_DIR/ssl.cnf |
echo "distinguished_name = req_distinguished_name" >> %PEGASUS_CONFIG_DIR/ssl.cnf | echo "distinguished_name = req_distinguished_name" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
echo "prompt = no" >> %PEGASUS_CONFIG_DIR/ssl.cnf | echo "prompt = no" >> %PEGASUS_CONFIG_DIR/ssl.cnf |
|
|
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 = $HOSTNAME" >> %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 |
chgrp root %PEGASUS_CONFIG_DIR/ssl.cnf | chgrp root %PEGASUS_CONFIG_DIR/ssl.cnf |
| |
openssl req -x509 -days 365 -newkey rsa:2048 \ |
openssl req -x509 -days 3650 -newkey rsa:2048 \ |
-nodes -config %PEGASUS_CONFIG_DIR/ssl.cnf \ | -nodes -config %PEGASUS_CONFIG_DIR/ssl.cnf \ |
-keyout %PEGASUS_CONFIG_DIR/key.pem -out %PEGASUS_CONFIG_DIR/cert.pem 2>>%INSTALL_LOG | -keyout %PEGASUS_CONFIG_DIR/key.pem -out %PEGASUS_CONFIG_DIR/cert.pem 2>>%INSTALL_LOG |
| |