Open main menu

CDOT Wiki β

Changes

OPS345 Lab 7

2,830 bytes added, 03:18, 30 November 2021
no edit summary
* webmail
* dovecot installed in previous lab* can't use the same keys generated in www lab, they're for the wrong FQDN<source>andrew@p51:~/prog/seneca/ops345/new$ sudo su -root@p51:~# certonly --manual --preferred-challenges dnscertonly:command not found* scp root@p51:~# certbot certonly --manual --P 2212 preferred-i keyschallenges dnsSaving debug log to /var/log/sshletsencrypt/letsencrypt.logPlugins selected: Authenticator manual, Installer NonePlease enter in your domain name(s) (comma and/or space separated) (Enter 'c'to cancel): email.asmith15.ops345.caObtaining a new certificatePerforming the following challenges:dns-01 challenge for email.asmith15.ops345.ca - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -NOTE: The IP of this machine will be publicly logged as having requested thiscertificate. If you're running certbot in manual mode on a machine that is notyour server, please ensure you're okay with that. Are you OK with your IP being logged?- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(Y)es/(N)o: y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Please deploy a DNS TXT record under the name_acme-challenge.email.asmith15.ops345.ca with the following value: PdK1vlZnYMdBO7untofSCkfXH2ejk3EE019R7A90x7Q Before continuing, verify the record is deployed.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -all-aws-machinesPress Enter to ContinueWaiting for verification...Cleaning up challenges IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/email.asmith15.ops345.ca/fullchain.pem keys Your key file has been saved at: /etc/letsencrypt/live/email.asmith15.ops345.ca/privkey.* andrew@34pem Your cert will expire on 2022-02-28.202To obtain a new or tweaked version of this certificate in the future, simply run certbot again.103To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by:  Donating to ISRG / Let's Encrypt: https://letsencrypt.43org/donate Donating to EFF:~ https://eff.org/donate-le * [root@email andrew]p51:~# cp /etc/letsencrypt/live/email.asmith15.ops345.ca./cert.pem ~andrew/etcprog/seneca/pkiops345/tlsnew/certskeys/email.asmith15.ops345.ca.cert.pem* [root@p51:~# cp /etc/letsencrypt/live/email .asmith15.ops345.ca/privkey.pem ~andrew]# cp /prog/seneca/ops345/new/keys/email.asmith15.ops345.ca.key.pem root@p51:~# chown andrew ~andrew/prog/seneca/etcops345/pkinew/tlskeys/privateemail.asmith15.ops345.ca.*</source>
* configure postfix to enable encrypted connections from client software. add this to the bottom of main.cf:
<source># Settings to enable secure SMTP via STARTTLS using my key and certificate:
smtpd_tls_loglevel = 1</source>
* test with telnet/EHLO: should say 250-STARTTLS
*dovecot installed in previous lab, it needs very little configuration for our simple setup* /etc/dovecot/dovecot.conf:* Modify the protocols option so that Dovecot will work with IMAP connections, no POP3 or LMTP.* 10-ssl.conf:** ssl_cert = </etc/pki/tls/certs/asmith15.ops345.ca.cert.pem** ssl_key = </etc/pki/tls/private/asmith15.ops345.ca.key.pem* ss should show port 993, no 995 or 110* there's no iptables running on email, so just open port 993 in ops345sgemail* configure thunderbird:** IMAP: email.asmith15.ops345.ca, SSL 993, normal password** SMTP: email.asmith15.ops345.ca, STARTTLS 25, normal password