Certificate: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==== Install certbot ====
== Install certbot ==


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 5: Line 5:
</syntaxhighlight>
</syntaxhighlight>


==== Request a wildcard certificat ====
== Request a wildcard certificat ==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
certbot certonly --manual --preferred-challenges=dns --email webmaster@objclt.ca --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.objclt.ca
certbot certonly --manual --preferred-challenges=dns --email webmaster@objclt.ca --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.objclt.ca
</syntaxhighlight>
</syntaxhighlight>


==== Update your DNS ====
=== Update your DNS ===
Please deploy a DNS TXT record under the name
Please deploy a DNS TXT record under the name
_acme-challenge.objclt.ca with the following value:
_acme-challenge.objclt.ca with the following value:
Line 21: Line 21:
</syntaxhighlight>
</syntaxhighlight>


==== certificate generated ====
=== certificate generated ===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
IMPORTANT NOTES:
IMPORTANT NOTES:
Line 38: Line 38:
</syntaxhighlight>
</syntaxhighlight>


* Get SSL Certificate
== Validate the certificate ==
<syntaxhighlight lang="bash">
certbot certonly --standalone -d mail.objclt.ca
</syntaxhighlight>
 
* Validate the certificate  
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
openssl s_client -connect mail.objclt.ca:[port] -servername mail.objclt.ca
openssl s_client -connect mail.objclt.ca:[port] -servername mail.objclt.ca

Revision as of 03:37, 15 October 2019

Install certbot

apt-get install certbot

Request a wildcard certificat

certbot certonly --manual --preferred-challenges=dns --email webmaster@objclt.ca --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.objclt.ca

Update your DNS

Please deploy a DNS TXT record under the name _acme-challenge.objclt.ca with the following value:

d2MbmqrvfiohoavRiquicUZZXCfKda5ApasdaafI (DO NOT USE THAT VALUE !!!)

Before continuing, verify the record is deployed.

_acme-challenge.objclt.ca.	IN	TXT	"d2MbmqrvfiohoavRiquicUZZXCfKda5ApasdaafI"

certificate generated

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/objclt.ca-0001/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/objclt.ca-0001/privkey.pem
   Your cert will expire on 2020-01-10. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To 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.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Validate the certificate

openssl s_client -connect mail.objclt.ca:[port] -servername mail.objclt.ca