Create wildcard from lets encrypt from another machine. And convert to p12

You need to verify by dns, that’s what I read anyway.

I was doing this from ubuntu 18.04

Install certbot:

sudo add-apt-repository ppa:certbot/certbot

sudo apt install python-certbot-apache

Oneliners

  1. Certbot certonly –manual –preferred-challenges=dns –email roger.bergling@invid.se –server https://acme-v02.api.letsencrypt.org/directory –agree-tos -d *.portal.jkp.invid.se
  2. Add DNS txt vaule, you get this from above command
  3. Convert cert to p12: openssl pkcs12 -export -inkey privkey.pem -in fullchain.pem -out portal.p12

 

 

private key to pem
openssl rsa -in private.key -text > private.pem

openssl pkcs12 -export -inkey privkey.pem -in fullchain.pem -out portal.p12

Convert crt private key to pem
openssl rsa -in private.key -text > private.pem

Convert crt with private key to p12
all.crt contains certificate and ca and intermediate
openssl pkcs12 -export -inkey private.pem -in all.crt -out mg.p12

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.