Right, i recreated cert using following lines:
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
As common name i put mail.domain.tpl, twice since i was asked twice during the whole process. Result = instead of mail.domain.tpl i get 'localhost' as common name.
I tried 3 times, tried using non http address, just text. I restarted postfix, sassl... and inetd everytime and still nothing, common name = localhost no matter what i do. All other 'fields' were also filled each time.
Which means, i'm doing something wrong in this. The question is what?
Recent comments
12 hours 15 min ago
18 hours 56 min ago
22 hours 47 min ago
1 day 25 min ago
1 day 8 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 3 hours ago