AMP > HTTPS

  • 190 Views
  • Last Post 3 weeks ago
runefist posted this 3 weeks ago

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 3 weeks ago - Last edited 3 weeks ago

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

runefist posted this 3 weeks ago - Last edited 3 weeks ago

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 3 weeks ago

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 3 weeks ago - Last edited 3 weeks ago

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 3 weeks ago

Try using a LetsEncrypt certificate instead?

runefist posted this 3 weeks ago - Last edited 3 weeks ago

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 :)