cd gmail_relay
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr}}
You will be prompted for country etc. like when creating the CA. Enter the same values. <br>
As Common Name, now enter the name of your server, FQDN or not, your choice. <br>
{{Code|openssl ca -out server.pem -infiles server.csr}}
You will need to enter your passphrase again at this point.<br>
When asked if you want to sign the key, answer yes, same when asked if to commit it.
Protect the files with your GMail login data:
{{Code|chmod 600 /etc/postfix/sasl_passwd