|
Posted by Ramon F Herrera on June 3, 2007, 6:06 pm
If you were Registered and logged in, you could reply and use other advanced thread options
> The dovecot (IMAP server) software comes with the script plus config
> file included below. Due to Thunderbird's complaints about the
> duplicate serial number I have been trying to change it. One of my
> attempts was to add this line:
>
> SN=1
>
> It seemed to work, but when Thunderbird examines the certitficate, it
> still says: "Serial Number: 0".
>
> How can I update that serial number?
>
> TIA,
>
> -Ramon F Herrera
>
> --------------------------------------------------------------------
> dovecot-openssl.cnf file:
> --------------------------------------------------------------------
> [ req ]
> default_bits = 1024
> encrypt_key = yes
> distinguished_name = req_dn
> x509_extensions = cert_type
> prompt = no
>
> [ req_dn ]
> # country (2 letter code)
> #C=FI
>
> # State or Province Name (full name)
> #ST=
>
> # Locality Name (eg. city)
> #L=Helsinki
>
> # Organization (eg. company)
> #O=Dovecot
>
> # Organizational Unit Name (eg. section)
> OU=IMAP server
>
> # Common Name (*.example.com is also possible)
> CN=imap.example.com
>
> # E-mail contact
> emailAddress=postmas...@example.com
>
> [ cert_type ]
> nsCertType = server
>
> --------------------------------------------------------------------
> mkcert.sh file:
> --------------------------------------------------------------------
> #!/bin/sh
>
> # Generates a self-signed certificate.
> # Edit dovecot-openssl.cnf before running this.
>
> OPENSSL=$
> SSLDIR=$
> OPENSSLCONFIG=$
>
> CERTDIR=$SSLDIR/certs
> KEYDIR=$SSLDIR/private
>
> CERTFILE=$CERTDIR/dovecot.pem
> KEYFILE=$KEYDIR/dovecot.pem
>
> if [ ! -d $CERTDIR ]; then
> echo "$SSLDIR/certs directory doesn't exist"
> exit 1
> fi
>
> if [ ! -d $KEYDIR ]; then
> echo "$SSLDIR/private directory doesn't exist"
> exit 1
> fi
>
> if [ -f $CERTFILE ]; then
> echo "$CERTFILE already exists, won't overwrite"
> exit 1
> fi
>
> if [ -f $KEYFILE ]; then
> echo "$KEYFILE already exists, won't overwrite"
> exit 1
> fi
>
> $OPENSSL req -new -x509 -nodes -config $OPENSSLCONFIG -out $CERTFILE -
> keyout $KEYFILE -days 365 || exit 2
> chmod 0600 $KEYFILE
> echo
> $OPENSSL x509 -subject -fingerprint -noout -in $CERTFILE || exit 2
I fixed this by going into Thunderbird's option menu and removing the
old certificates.
Still, I am curious: What's the deal with Serial Numbers?
-Ramon
|