[BlueOnyx:03287] Re: admserv cert

Michael Stauber mstauber at blueonyx.it
Thu Jan 7 22:18:34 -05 2010


Hi Rod,

> Some progress, this command created a new key...but not the certificate. 
> 'admserv restart' errors with a 'missing certificate file' as expected.

Ah, right. Ok, create the following script (name it "ssl.sh" or something), 
make it executeable and run it as root:

--------------------------------------------------------------------------
#!/bin/sh
FQDN=`hostname`
if [ "x${FQDN}" = "x" ]; then
   FQDN=localhost.localdomain
fi

cat << EOF | /usr/bin/openssl req -new -key /etc/admserv/certs/key -x509 \ 
-days 365 -out /etc/admserv/certs/certificate 2>/dev/null
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
${FQDN}
root@${FQDN}
EOF
--------------------------------------------------------------------------

That should do it. And yes, there is a "--" in the middle of it.

-- 
With best regards

Michael Stauber




More information about the Blueonyx mailing list