you mean I cannot use HTTPS using node.js with Azure?

On Monday, August 6, 2012 10:47:15 AM UTC-7, Tomasz Janczuk wrote:
>
> If you are hosting an HTTPS node.js site in IIS using iisnode, instead 
> of setting up an HTTPS server in your application, set up an HTTP one. 
> This is because iisnode acts as an HTTP reverse proxy that terminates 
> HTTPS traffic. Communication between iisnode and node.exe uses 
> unsecure HTTP over named pipes. 
>
> Thanks, 
> Tomasz Janczuk 
>
> On Aug 2, 8:27 am, thstart <[email protected]> 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 -khttps://localhost:8000/varhttps = 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to