On my linode box I installed the Let's Encrypt SSL certs and created a bare-bones Vibe.d app to test my SSL connection. I always timeout. Here is the code:
import vibe.vibe;
void main()
{
auto settings = new HTTPServerSettings;
settings.port = 8080;
settings.bindAddresses = ["::1", "127.0.0.1","50.116.15.145"];
settings.tlsContext = createTLSContext(TLSContextKind.server);
settings.tlsContext.useCertificateChainFile("/etc/letsencrypt/live/findyourtutor.info/cert.pem");
settings.tlsContext.usePrivateKeyFile("/etc/letsencrypt/live/findyourtutor.info/privkey.pem");
listenHTTP(settings, &hello);
logInfo("Please open 'http://www.findyourtutor.info' in your browser.");
runApplication();
}
void hello(HTTPServerRequest req, HTTPServerResponse res)
{
res.writeBody("Hello, World!");
}
If I simply visit
www.findyourtutor.info or
findyourtutor.info
I can view them fine.
But if I visit https://findyourtutor.info
, I time out.
I also time out with
https://findyourtutor.info:8080
https://www.findyourtutor.info
https://www.findyourtutor.info:8080
When logged in at linode, I can do
lynx https://localhost:8080
and lynx warns me about the certificates but I can see the site after pressing 'y' twice.
I can also do
lynx http://localhost
but not
lynx http://localhost:8080
At this point I don't know if my code is at fault or my setup is at fault.
My UFW firewall allows HTTPS from anywhere.