TheRudy
20th June 2006, 23:14
Right, i recreated cert using following lines:
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?
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?