create SSL cert via script

Alexander Dalloz ad+lists at uni-x.org
Tue Jan 3 13:57:39 UTC 2006


Am Di, den 03.01.2006 schrieb Ingo Jochim um 11:05:

> How can I create a SSL certificate via script full automated?
> 
> Thank you for your help.
> Ingo

You may do it like some (those which ship with a certificate) of the
Fedora RPMs do during rpmbuild. Following is taken from the OpenLDAP
.spec:

pushd %{_sysconfdir}/pki/tls/certs
umask 077
cat << EOF | make slapd.pem
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
localhost.localdomain
root at localhost.localdomain
EOF
chown root:ldap slapd.pem
chmod 640 slapd.pem
popd

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 14:55:49 up 29 days, 19:32, load average: 0.87, 0.76, 0.45 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060103/a287faf9/attachment-0001.sig>


More information about the fedora-list mailing list