PDA

View Full Version : Creating self signed cert ERROR


namit
14th March 2007, 23:20
Creating self signed cert i am getting this error anyone help me?


mailman:/etc/ssl/certs# dpkg-reconfigure dovecot-common
Stopping mail server: dovecot .
Creating generic self-signed certificate: /etc/ssl/certs/dovecot.pem
(replace with hand-crafted or authorized one if needed).
Warning : Bad SSL config, can't generate certificate
chown: cannot access `/etc/ssl/certs/dovecot.pem': No such file or directory
chgrp: cannot access `/etc/ssl/certs/dovecot.pem': No such file or directory
chmod: cannot access `/etc/ssl/certs/dovecot.pem': No such file or directory
Starting mail server: dovecotFatal: Can't use SSL certificate /etc/ssl/certs/dovecot.pem: No such file or directory
invoke-rc.d: initscript dovecot, action "start" failed.
mailman:/etc/ssl/certs# echo $SSL_CERT

Thanks

falko
15th March 2007, 15:59
What's the output of ls -la /etc/ssl/certs?

namit
15th March 2007, 16:30
I had the following output

total 24
drwxr-xr-x 3 root root 4096 2007-03-14 22:05 .
drwxr-xr-x 5 root root 4096 2007-02-24 17:15 ..
-rw-r--r-- 1 root dovecot 1180 2007-01-26 20:42 dovecot.pem-old
lrwxrwxrwx 1 root root 8 2005-12-08 22:11 f46db652.0 -> ftpd.pem
-rw------- 1 root root 2010 2005-12-08 22:11 ftpd.pem
-rw-r--r-- 1 root root 963 2007-01-14 14:27 privkey.pem
drwxr-xr-x 6 root root 4096 2007-01-26 20:34 rootCA

falko
16th March 2007, 19:09
Can you try
cp /etc/ssl/certs/dovecot.pem-old /etc/ssl/certs/dovecot.pem
dpkg-reconfigure dovecot-common?

namit
18th March 2007, 23:42
its just returns that there is already one.

just to clarify the only reason i want to do this is so sign the cert off as someone else then localhost.localhost so thunderbird will stop annoying me every time i check my email.