58 Dispatches · 5 Desks · 68 Topics · 3 Series

Unofficial Azure Club

“IaaS, PaaS, Cloud Native, Kubernetes, Everything is possible in this website :)”



Field Notes D03

Using Let's Encrypt to Sign a Certificate

Using Let's Encrypt to Sign a Certificate

Using Let’s Encrypt to Sign a Certificate

First of all, a private key is needed before generating a signing request. You can either use OpenSSL:

openssl genrsa -out ~/domain.com.ssl/domain.com.key 2048
openssl req -new -sha256 -key ~/domain.com.ssl/domain.com.key -out ~/domain.com.ssl/domain.com.csr

or use Azure Key Vault, especially if you want to store the certificate in Azure.

  1. From Key Vault, go to SETTINGS -> Certificates -> Generate/Import, and set “Type of Certificate Authority (CA)” to “Certificate issued by a non-integrated CA”. create_a_certificate
  2. Click the key created just now, choose “Certificate Operation”->“Download CSR” to download the CSR as domain.com.csr
    download_csr
    Now we are going to sign the certificate by using certbot. Here are the steps:
sudo -i
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install certbot
ufw allow 80
ufw allow 443
certbot certonly --standalone --register-unsafely-without-email --csr <your_key_csr>.csr

If Azure key vault is being used, we need to “Merge Signed Request”
merge_signed_request