I was previously with COMODO, and I have a simple http-proxy script like this:
var httpProxy = require('http-proxy')
var fs = require("fs")
var files = [
"COMODORSADomainValidationSecureServerCA.crt",
"COMODORSAAddTrustCA.crt",
"AddTrustExternalCARoot.crt"
]
var caChain = []
files.forEach(file => {
caChain.push(
fs.readFileSync('./trusktr.io.cert/'+file)
)
})
var options = {
https: {
ca: caChain,
key: fs.readFileSync('./trusktr.io.key/trusktr.io.key', 'utf8'),
cert: fs.readFileSync('./trusktr.io.cert/STAR_trusktr_io.crt', 'utf8')
},
// ...
}
httpsProxy.createServer(options).listen(443)
I’m wondering how to migrate from the COMODO files, which are
crts/
AddTrustExternalCARoot.crt
COMODORSAAddTrustCA.crt
COMODORSADomainValidationSecureServerCA.crt
STAR_trusktr_io.crt
key/
trusktr.io.key
to the Let’s Encrypt files, which are
/etc/letsencrypt/keys/
0000_key-letsencrypt.pem
/etc/letsencrypt/live/trusktr.io/
cert.pem
chain.pem
fullchain.pem
privkey.pem
. Any insights on what I might need to do? I wonder if I can use the .pem
files, or if I’ll need to convert to .crt
.