AMP > HTTPS

  • 215 Views
  • Last Post 09 March 2017
runefist posted this 09 March 2017

Hey,

I am trying to set HTTPS up, can't get it to work tho :/

  • Webserver.useHTTPS=True
  • Webserver.CertificatePath=/home/runefist/Certificates/bending-heroes.com.pfx
  • Webserver.CertificatePassword=TheSuperCoolPasswordLEL

^ That's my config, this is not the real password OFCOURSE :P

So now when I go to my webpage http://manage.bending-heroes.com:2052/ it does not seem to work.

When I go directly to the IP, and put https in front, it downloads a file...

Kind regards, Runefist

  • Liked by
  • Mike
6 Comments
Order By: Standard | Newest | Votes
Mike posted this 09 March 2017 - Last edited 09 March 2017

You put http in front instead of https. AMP won't respond to HTTP at all when you enable HTTPS mode.

runefist posted this 09 March 2017 - Last edited 09 March 2017

If you put https, it says:

"This site can’t provide a secure connection

manage.bending-heroes.com sent an invalid response."

Mike posted this 09 March 2017

What browser are you using? It could be because AMP is currently using an older version of TLS though. Failing that your fallback is to setup a local reverse proxy.

runefist posted this 09 March 2017 - Last edited 09 March 2017

Internet explorer and Chrome both seem to have this problem. I have not tested any other browser.

The certificate is from Cloudflare, Idk if that is useful information for you :P

Mike posted this 09 March 2017

Try using a LetsEncrypt certificate instead?

runefist posted this 09 March 2017 - Last edited 09 March 2017

Something with cloudflare domain thing where cloudflare is the proxy so it cannot resolve the domain name correctly... Anyways I read an article on cloudflare: https://support.cloudflare.com/hc/en-us/articles/214820528-How-to-Validate-a-Let-s-Encrypt-Certificate-on-a-Site-Already-Active-on-Cloudflare but I saw it needed a webroot path, can you give an example where the webroot path should be if I installed AMP at: /home/[username]/.ampdata/instances/[all AMP instances]

Also maybe a tip: redirect all HTTP requests of this website (forums.cubercoders.com) to HTTPS, why would you else have HTTPS :)