Hello,

I'm trying to configure ESMTP using this guide [1].

$ touch smtpd.key
$ chmod 600 smtpd.key
$ openssl genrsa 4096 > smtpd.key
$ openssl req -new -key smtpd.key -x509 -days 730 -out smtpd.crt
...
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:.
State or Province Name (full name) [Some-State]:.
Locality Name (eg, city) []:.
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (eg, YOUR name) []:mail.example.com
Email Address []:ad...@example.com

(I'm using example.com as a placeholder.)

$ openssl req -new -x509 -extensions v3_ca -keyout cakey.pem \
-out cacert.pem -days 730
...
-----
Country Name (2 letter code) [AU]:.
State or Province Name (full name) [Some-State]:.
Locality Name (eg, city) []:.
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (eg, YOUR name) []:mail.example.com
Email Address []:ad...@example.com

The above generated a 1024 bit RSA private key. How to create a 4096 bit key?

I'm going to send messages via Gnus. My .gnus.el:

(setq message-send-mail-function 'smtpmail-send it)
(setq smtpmail-starttls-credentials '(("mail.example.com" 25 nil nil)))
(setq smtpmail-auth-credentioals '(("mail.example.com" 25 "admin" nil)))
(setq smtpmail-default-smtp-server "mail.example.com")
(setq smtpmail-smtp-service 25)
(setq starttls-use-gnutls t)

Docs say that I'll be prompted for a password. Which one should I use?
Should I specify the one for the RSA private key ($ openssl req \
-new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem \
-days 730)?

[1] https://help.ubuntu.com/community/Postfix


Reply via email to