cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Fedora nodejs ssl

Hello,

 

I already have a domain and an SSL for it. I also have a Fedora server

and running my Nodejs application on it.

How can I setup the SSL to the nodejs application.

I downloaded the [randomHash].crt and gd_bundle-g2-g1.crt files and I learned that I need to

separate the bundle files content. 

 

        const options = {
            key: fs.readFileSync(resolve(Appdir, '../cert/domain.key')),
            cert: fs.readFileSync(resolve(Appdir, '../cert/domain.crt')),
            ca: [
                fs.readFileSync(resolve(Appdir, '../cert/cas/gd1.crt')),
                fs.readFileSync(resolve(Appdir, '../cert/cas/gd2.crt')),
                fs.readFileSync(resolve(Appdir, '../cert/cas/gd3.crt')),
            ],
        };

As I assume the domain.crt is the random named .crt file what I downloaded. But how can I get the domain.key file?

 

Thanks,
Akos