Creating certificate Directory for SSL/TLS auth for Gmail
# Create a certificate directory
~]$ mkdir .certs
# Create a new database in the certs dir
~]$ certutil -N -d .certs
# Fetch the certificate from Gmail, saving in the text file GMAILCERT
~]$ echo -n | openssl s_client -connect smtp.gmail.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > GMAILCERT
# Import the new cert file into the new database in the new dir
~]$ certutil -A -n "Google Internet Authority" -t "C,," -d .certs -i GMAILCERT
# Double Check
~]$ certutil -L -d .certs
Certificate Nickname Trust Attributes
SSL,S/MIME,JAR/XPI
Google Internet Authority C,,
Mail .mailrc file
account gmail {
set smtp-use-starttls
set ssl-verify=ignore
set nss-config-dir=~/.certs
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
set smtp-auth-user=data.insights@me.com
set smtp-auth-password=passwd
set from="data.insights@me.com (My Insights)"
}
Comments
Post a Comment