I got myself this files from Certificate Authority:
And I tried this little
I little late but I hope this helps.
If someone have work with this files : pb7, crt,ca-bundle and have this error:
error:0906D06C:PEM routines:PEM_read_bio:no start line
This would mean that this files are wrong, corrupt or was requested for another environments (windows for example) as this post says:https://serverfault.com/a/317038
So the solution in my case was request for a new certificates and in the especifications , put the following:
Also is important save the key with which the csr was created and sent to the certificator provider(I called initial.key).
Example http://www.backwardcompatible.net/155-Setting-up-real-SSL-Nodejs-Express
Finally , your provider will send you a zip with several files. You only need a .crt file for your node app:
var privateKey = fs.readFileSync('/some/folder/initial.key').toString();
var certificate = fs.readFileSync('/some/folder/certificate.crt').toString();
var credentials = {key: privateKey, cert: certificate};
Note : certificate.ca-bundle and certificate.crt files must be sent by certificator provider.
HTH