Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use https?
#1
Question 
Delphi version: 10.3
Intraweb version: 16
Application type: Http.sys

I'm trying to secure my website.
For testing purposes, I've already generated a self-signed certificate and reserved the URL (netsh http delete urlacl url=http://+:8888/; netsh http add urlacl url=http://+:8888/ user="Everyone").
However, my website still doesn't support HTTPS.
Note: I'm not using a domain; I'm accessing it locally (127.0.0.1:8888).

What am I doing wrong?
Reply
#2
You need to "bind" the certificate to the address/port that you are using.

Atozed developed a tool to help developers to handle every task required to use a certificate with all types of IW applications.

Here's the how to: https://www.atozed.com/intraweb/certmana...lications/

Please notice that this document shows steps to handle both Indy and Http.sys applications (some steps only apply to Http.sys, others to Indy)

Please let me know how it goes.

Cheers
Reply
#3
I purchased a cheap domain just for testing, Generated a Let's Encrypt certificate, installed and linked this certificate, and it worked.
Thankyou.
Reply
#4
That's great news :-)

Thanks for the feedback
Reply
#5
You need to bind your SSL certificate to the HTTPS port, not HTTP.
Try this in an elevated command prompt:




netsh http add sslcert ipport=0.0.0.0:8888 certhash=YOUR_CERT_HASH appid={YOUR_APP_GUID}




Then in IntraWeb ServerController, enable SSLOptions.Enabled := True; and set the certificate/key paths.
After that, access your app via https://127.0.0.1:8888/.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)