HomePage
WikiBlog
RecentChanges
LikePages
BackLinks
FindPage

Blog entries

2010-02-16: RSS-Feeds für ricardo.ch-Suchergebnisse

2010-02-15_spam: Disabling public editing

2010-02-15: Show Processes waiting for I/O in Linux

2010-02-13: Sony Vaio P in der Schweiz...

2009-06-17: Wie man plötzlich zum Mörder wird (weil's einfach besser 'rüberkommt!)

2008-05-18: Recreating SSL keys for stunnel, lighttpd and dovecot following the Debian-OpenSSL debacle

2008-02-12: Patch for aoeserver in Kernel 2.6.24

2008-02-07: Usage of open-iscsi on Linux

2008-02-05: Linux and Windows working in harmony with iSCSI

2008-01-19: Linksys PAP2 FXS Port Impedance

< July, 2010 >
Sun Mon Tue Wed Thu Fri Sat
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Wiki Blog/2008-05-18

Recreating SSL keys for stunnel, lighttpd and dovecot following the Debian-OpenSSL debacle

If you are in need of new self-signed SSL keys for your Debian stunnel, lighttpd and dovecot installations, this will get you started.

If you run Debian or any other server software accepting key-based authentication (with keys having come eventually from Debian installations), you will need to re-create all OpenSSL keys. The Debian people put together a Wiki page called SSLkeys that explains how to re-create keys for various software packages.

From the editors at Heise there is a very good overview of the situation called Der kleine OpenSSL Wegweiser (German only).

Run the following and enter your DNS hostname when asked for the "Common Name":

openssl req -new -x509 -days 3650 -nodes -out stunnel.pem -keyout stunnel.pem

Now stunnel needs some more caring (Diffie-Hellman initialization parameters; not providing them results in the error message "Could not load DH parameters" when trying to start stunnel):

dd if=/dev/urandom count=2 | openssl dhparam -rand - 512 >> stunnel.pem

Copy the resulting stunnel.pem to the directory /etc/ssl/certs/, where stunnel expects it to be.

You can test whether all is working again like this:

stunnel -f -d 465 -r localhost:25

The certificate /etc/ssl/certs/stunnel.pem can now be used without changes for the aforementioned nice pieces of software too:

  • lighttpd
  • dovecot
 
Add a Comment
Summary:
Comment:

Last edited on 18.05.2008 12:22.


Edit | PageHistory | Diff | PageInfo

© Copyright 2004 - 2006 Nicola Fankhauser. All Rights Reserved.