postfix TLS cannot read cert

Discussion in 'Server Operation' started by ryanhs, Mar 9, 2006.

  1. ryanhs

    ryanhs New Member

    ello I have successfully installed howtoforge ubuntu breezy and everything is working great except smtp tls. here is a copy of the problem from mail.log. I would very much appreciate any information that woudl help me with this issue. I have been trying to figure this out all day.

    Mar 6 20:47:22 bbmail3 postfix/smtpd[15657]: warning: cannot get private key from file /etc/postfix/ssl/smtpd.crt
    Mar 6 20:47:22 bbmail3 postfix/smtpd[15657]: warning: TLS library problem: 15657:error:0906D06C:pEM routines:pEM_read_bio:no start lineem_lib.c:642:Expecting: ANY PRIVATE KEY:
    Mar 6 20:47:22 bbmail3 postfix/smtpd[15657]: warning: TLS library problem: 15657:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:pEM lib:ssl_rsa.c:709:
    Mar 6 20:47:22 bbmail3 postfix/smtpd[15657]: cannot load RSA certificate and key data
    Mar 6 20:47:27 bbmail3 postfix/smtpd[15657]: connect from unknown[67.50.128.80]
    Mar 6 20:47:42 bbmail3 postfix/smtpd[15657]: lost connection after STARTTLS from unknown[67.50.128.80]
    Mar 6 20:47:42 bbmail3 postfix/smtpd[15657]: disconnect from unknown[67.50.128.80]



    Additional information:
    -----------------------------------------------------------------------
    ls -l /etc/postfix/ssl
    total 20
    -rw-r--r-- 1 root root 969 2006-03-06 20:12 cacert.pem
    -rw-r--r-- 1 root root 963 2006-03-06 20:12 cakey.pem
    -rw-r--r-- 1 root root 741 2006-03-06 20:11 smtpd.crt
    -rw-r--r-- 1 root root 631 2006-03-06 20:11 smtpd.csr
    -rw-r--r-- 1 root root 887 2006-03-06 20:11 smtpd.key
    root@bbmail3:/etc/postfix#

    ------------------------------------------------------------------------
    root@bbmail3:/etc/postfix/ssl# cat smtpd.crt
    -----BEGIN CERTIFICATE-----
    MIIB9TCCAV4CCQDG3QcPheHAVjANBgkqhkiG9w0BAQQFADA/MQswCQYDVQQGEwJV
    UzOpkSo2VCwtCQoa7755gAmldydeOru
    vacIU4Heskrv6PVj/0CWLvDhh7gvkydN0XLZMp21j22b2m8fRhuI+X9c/neesEQ0
    BxV0F+ixLs+2bIMseMFBrSrCx6AuBITL9Q==
    -----END CERTIFICATE-----
    root@bbmail3:/etc/postfix/ssl#

    NOTE: The middle of the ssl cert was removed.

    I was not able to find any information online about the problem that I am having.

    I have redone the openssl steps from:
    http://howtoforge.com/perfect_setup_ubuntu_5.10_p4
     
  2. falko

    falko Super Moderator

    Can you try this:
    Code:
    chown postfix:postfix /etc/postfix/ssl/smtpd.crt
    and restart Postfix?
     

Share This Page