Link to home
Start Free TrialLog in
Avatar of sara2000
sara2000

asked on

Convert SSL cert to TXT

I have a CSR file and got the certificate from our internal CA for an appliance. How do I convert this certificate as a .txt file with BEGIN CERTIFICATE  and END CERTIFICATE so I can paste this text to an appliance to install the cert?
Avatar of David Favor
David Favor
Flag of United States of America image

Provide all your steps, as your cert generation step has almost surely generated a .cert or .fullchain file which you'll use.

Tip: Independent of what tool you use + file extensions your tool generates (they all seems to produces slightly different extensions), all the produced files are human readable text.

For example, https://www.experts-exchange.com/questions/29164536/SSL-Solution-for-Multi-Domain-Multi-Host.html discusses using LetsEncrypt to generate certs.

When finished, you'll have a list of cert files.

For example, here are the LetsEncrypt generated files. Note there's no .csr file as LetsEncrypt automatically generates this file, so you never see a .csr file... unless you really dig for it...

lxd: net14-dns-ns11 # lsd -l /etc/letsencrypt/live/davidfavor.com/*
-rw-r--r-- 1 root root 682 Jul  3  2018 /etc/letsencrypt/live/davidfavor.com/README
lrwxrwxrwx 1 root root  39 Dec 25 19:04 /etc/letsencrypt/live/davidfavor.com/cert.pem -> ../../archive/davidfavor.com/cert10.pem
lrwxrwxrwx 1 root root  40 Dec 25 19:04 /etc/letsencrypt/live/davidfavor.com/chain.pem -> ../../archive/davidfavor.com/chain10.pem
lrwxrwxrwx 1 root root  44 Dec 25 19:04 /etc/letsencrypt/live/davidfavor.com/fullchain.pem -> ../../archive/davidfavor.com/fullchain10.pem
lrwxrwxrwx 1 root root  42 Dec 25 19:04 /etc/letsencrypt/live/davidfavor.com/privkey.pem -> ../../archive/davidfavor.com/privkey10.pem

Open in new window


All these files have .pem extensions + the files are actually all human readable, plain text files... albeit, containing long strings of text...
ASKER CERTIFIED SOLUTION
Avatar of Aard Vark
Aard Vark
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sara2000
sara2000

ASKER

The cert was issued by internal CA. I was able to convert it to pem file using openssl.