grunt-connect-proxy icon indicating copy to clipboard operation
grunt-connect-proxy copied to clipboard

problem with self signed certificats

Open shayh opened this issue 10 years ago • 8 comments

I have a self signed certificate on a https site I point the proxy to. I get the following error: Fatal error: Parse Error Fatal error: socket hang up

my configuration is:

proxies: [{
        context: '/api', // the context of the data service
        host: 'my-https-api-site', // wherever the data service is running
        port: 443,
        https: true,
        xforward: true,

      }],
livereload: {
        options: {
          open: {target: 'http://localhost:9000'},
          base: [
        '.tmp',
        '<%= yeoman.app %>'
        ],

please help, Shay

shayh avatar Aug 26 '14 15:08 shayh

I think your cert isn't the issue, as this is consistent with what I'm seeing. See #70 for SSL issues with 0.1.11. Downgrading to 0.1.10 worked for me.

lukeman avatar Aug 27 '14 00:08 lukeman

Same issue here ! Downgrading worked for me too...

paulsouche avatar Aug 27 '14 09:08 paulsouche

I also had a similar issue where I would get a 400 with the message "HTTP request sent to a HTTPS port". After rolling back to 0.1.10 the error was resolved.

SyntaxStacks avatar Aug 29 '14 13:08 SyntaxStacks

thanks, it does work in 0.1.10 after digging around it loos like a problem with the underling node-http-proxy that changed it's behavior after a certain version.

shayh avatar Aug 31 '14 08:08 shayh

+1 worked for me too.

brianmriley avatar Oct 10 '14 15:10 brianmriley

Thx guys! Took me a while to find this page, but worked like a charm. Had HTTP 400: The plain HTTP request was sent to HTTPS port response and downgrading fixed it!

kaczynskid avatar Feb 23 '15 12:02 kaczynskid

+1 in the downgrade ! after a day I found this page !

hummorsa avatar Mar 24 '15 01:03 hummorsa

Thanks everyone. Downgrading to version 0.1.10 worked for me as well.

Stratus3D avatar Apr 09 '15 21:04 Stratus3D