The operating system my web server runs on is (include version):
ubuntu 20.04
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
HestiaCP
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
1.27
Hi,
I need to be able to create a .cre file from the .pem.
I noticed that in /etc/letsencrypt/archive/my-domain/
the fullchain1.pem has 3 certificate blocks
Like this ( I have taken some lines out for brevity )
-----BEGIN CERTIFICATE-----
MIIFJjCCBA6gAwIBAgISBLV5s/k7KmTYDsjJzS9xqRihMA0GCSqGSIb3DQEBCwUA
FjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQU
RwAAAYE/mA8IAAAEAwBHMEUCICSTTYk15OJhlSafBUcXqMU2GWjUofROKnzdX/E8
qOIqAiEAmpf3LG/xeEKjNyZ3xcN94VoAFlS/I1+eMnTaVTJHd/UwDQYJKoZIhvcN
AQELBQADggEBADHqSw8QPlFZgh5+DB7UJggUTQOgaoEVZsh7dyEfPuNrmTRR8MpA
+Wi3b0dxXw3oCiewqOASpHW+OxuqjlDz1ofjKQ/WEsOMxEHhM570B12xYxLdu701
AKes8yqSepJzspPxx3Q+ThdIYk2wVTkYOXhKBmhYdyKIA7uQPT/W8NgUA4BhQ8/X
lbdIXqMlgIXLBUpx1BY+AP1tbh4FoxEUezvUD/ChNwzaF1IjTGa7jb8WVaDY40uA
SfQ2Lqi0MxtDhTD5UJvlVaS3+/3UC7Aueo+czIFj7I8gWULS4yvoRyRs2+pFkXeH
URpzVsoJGL/VcEZz13eaQPPhJ87Yyw6haPk=
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIFFjCCAv6gAwIBAgIRAJErCErPDBinU/bWLiWnX1owDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU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fEwEB
ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
Dfvp7OOGAN6dEOM4+qR9sdjoSYKEBpsr6GtPAQw4dy753ec5
-----END CERTIFICATE-----
The openssl is supposed to convert to a .crt file
When I run this:
openssl x509 -outform der -in fullchain1.pem -out new.crt
root@expressresponse:/etc/letsencrypt/archive/gldn.page# cat new.crt
0▒&0▒▒▒y▒H▒▒▒▒▒▒/q▒▒0
021
0 UUS10U
Let's Encrypt1
▒0▒90518▒H▒▒010UR30 gldn.page0▒"0
▒▒ž▒▒▒Yi▒'m▒▒Se▒▒▒u▒▒]▒▒▒▒"OۀNDz▒▒(;~▒▒=▒▒'+^▒\▒!▒<▒▒lsk>▒H▒▒▒▒▒[9▒▒=▒wXR▒▒wƷ@l5▒S^▒▒cs▒▒▒▒▒ͯ>▒▒▒▒h"▒ d▒▒#▒▒6SD-▒m▒▒▒▒▒A▒▒LAk#▒A▒ң▒▒V8▒]FhQqiޡ▒Zr>c▒▒▒▒▒▒$▒7ʋ|▒ :4U▒
;▒▒/H=8▒▒c▒U
▒▒F▒▒▒Gx▒▒▒▒R0▒N0U▒▒0U%+0
U▒00U▒▒(▒▒!Ӵ0M
(▒▒'▒▒MK0U#0▒.▒▒XVˮP @▒▒▒▒▒▒0+I0G0+0▒http://r3.o.lencr.org0+0▒http://r3.i.lencr.org/0!U0▒
.gldn.page▒ gldn.page0LU E0Cg▒
07
+▒▒0(0+http://cps.letsencrypt.org0▒
+▒y▒▒▒▒▒wߥ^▒h▒Ol▒▒_N>Z▒͢▒j^▒;▒ D*s▒?▒▒H0F!▒▒▒▒<▒▒▒▒L▒▒
W▒K%fp▒▒%(▒!▒s_▒|End▒Թ▒հ▒P▒
▒H▒▒ &▒y3p▒▒vF▒U▒u▒ 0▒▒▒i▒▒},At▒▒I▒▒▒▒▒p▒mG▒?G0E $▒M▒5▒▒a▒&▒G▒▒6hԡ▒N|▒_▒<▒▒!▒▒▒,o▒xB▒7&w▒▒}▒ZT▒#▒2t▒U2Gw▒0
▒1▒K>QY▒~
▒M▒j▒f▒{w!>▒k▒4Q▒▒@▒h▒oGq
'▒▒▒▒u▒;▒P▒և▒)▒Ì▒A▒3▒▒]▒cݻ▒5▒▒▒*▒z▒s▒▒▒▒t>NHbM▒U99xJhXw"▒▒▒=?▒▒▒▒aC▒ו▒H^▒%▒▒▒Jq▒>▒mn▒{;▒▒7
▒R#Lf▒▒▒U▒▒▒K▒I▒6.▒▒3▒0▒P▒▒U▒▒▒▒▒
▒.z▒▒́c▒ YB▒▒+▒G$l▒▒E▒w▒QsV▒ ▒▒pFs▒w▒@▒▒'▒▒▒▒h▒root@expressresponse:/etc/letsencrypt/archive/gldn.page# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
Is the output supposed to look like this?
If the .crt file is just one of those certificates, can I just cut it out with vim ?
Also would be nice to know what those 3 certificates are for?
Is one the public key? Which one?
Thanks