I ran through same issue and hit here. I generated pfx from the godaddy 
certificate files using IIS admin console. Provided pfx and passphrase 
options to https.createServer(options). Refer 
here<http://youmayneedthis.wordpress.com/2013/05/16/getting-pfx-file-for-nodejs-https-server-from-godaddy-ssl-certificate/>for
 details. HTH someone.

On Thursday, August 2, 2012 8:57:36 PM UTC+5:30, thstart wrote:

> Install GoDaddy SSL certificate with Node.js
>
> I want to use https for my web app which is running on Microsoft
> Azure. 
>
> I used IIS to generate certificate for GoDaddy then downloaded two files:
> <domain name>.crt
> gd_iis_intermediates.p7b
> Then I followed procedures described in GoDaddy to export and password 
> protect my <domain name>.pfx certificate. Uploaded to MS Azure now my site
> is serving https only.
>
> Now I need to use https.createServer(options, [requestListener]) as 
> described in:
> http://nodejs.org/api/https.html 
>
> // curl -k https://localhost:8000/var https = require('https');var fs = 
> require('fs');
> var options = {
>   key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
>   cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')};
>
> https.createServer(options, function (req, res) {
>   res.writeHead(200);
>   res.end("hello world\n");}).listen(8000);
>
>
>
> There is not a key when I am using IIS so I have to extract 
> it from the .pfx and remove the password or to use the .pfx
> directly (which needs a password). How is the right way to 
> handle this?
>
>
> var https = require('https');var fs = require('fs');
> var options = {
>   pfx: fs.readFileSync('server.pfx')};
>
> https.createServer(options, function (req, res) {
>   res.writeHead(200);
>   res.end("hello world\n");}).listen(8000);
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to