HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   TLS Problem (http://www.howtoforge.com/forums/showthread.php?t=39365)

admins 18th September 2009 16:11

TLS Problem
 
Hi all

I've following in the log:

Code:

Sep 18 13:55:01 websrv1 postfix/smtpd[5418]: warning: TLS library problem: 5418:error:0906406D:PEM routines:PEM_def_callback:problems getting password:pem_lib.c:105:
Sep 18 13:55:01 websrv1 postfix/smtpd[5418]: warning: TLS library problem: 5418:error:0906A068:PEM routines:PEM_do_header:bad password read:pem_lib.c:403:
Sep 18 13:55:01 websrv1 postfix/smtpd[5418]: warning: TLS library problem: 5418:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:669:
Sep 18 14:00:02 websrv1 postfix/smtpd[5532]: warning: cannot get private key from file /etc/postfix/ssl/smtpd.key
Sep 18 14:00:02 websrv1 postfix/smtpd[5532]: warning: TLS library problem: 5532:error:0906406D:PEM routines:PEM_def_callback:problems getting password:pem_lib.c:105:
Sep 18 14:00:02 websrv1 postfix/smtpd[5532]: warning: TLS library problem: 5532:error:0906A068:PEM routines:PEM_do_header:bad password read:pem_lib.c:403:
Sep 18 14:00:02 websrv1 postfix/smtpd[5532]: warning: TLS library problem: 5532:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:669:
Sep 18 14:05:03 websrv1 postfix/smtpd[6675]: warning: cannot get private key from file /etc/postfix/ssl/smtpd.key
Sep 18 14:05:03 websrv1 postfix/smtpd[6675]: warning: TLS library problem: 6675:error:0906406D:PEM routines:PEM_def_callback:problems getting password:pem_lib.c:105:
Sep 18 14:05:03 websrv1 postfix/smtpd[6675]: warning: TLS library problem: 6675:error:0906A068:PEM routines:PEM_do_header:bad password read:pem_lib.c:403:
Sep 18 14:05:03 websrv1 postfix/smtpd[6675]: warning: TLS library problem: 6675:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:669:

May I do not know how to it solve.
Any ideas?

thanks
admins

till 19th September 2009 10:55

To create a new ssl cert for postfix, run these commands:
Code:

cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650



All times are GMT +2. The time now is 05:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.