Forum

Issues using TLS with hiawatha?

Tom Lukeywood
20 July 2016, 23:07
I have been trying to self use my self signed TLS certificate (a .pem file) with Hiawatha
but currently when I follow the information on this webpage: https://www.hiawatha-webserver.org/howto/bindings
Hiawatha dose not seem to be hosting anything at port 443 as when I run
netstat -tlpn i see nothing running at port 443

here is my bind function in my config file
Binding {
Port = 443
TLScertFile = /home/tom/keys/tls.pem
}



any help appreciated thanks in advanced!
chapchap70
21 July 2016, 04:47
Is the port open at the router?
Tom Lukeywood
21 July 2016, 10:22
no but that should not matter as when i run netstat -tlpn
nothing is running on port 443 anyway
Tom Lukeywood
21 July 2016, 12:33
Update:
I have now started generating my pem file using the instructions here:
https://www.hiawatha-webserver.org/forum/topic/2214

and now when I run hiawatha i get this error:
Error loading private key from /home/tom/keys/serverkey.pem: PK - Invalid key tag or value : ASN1 - ASN1 tag was of an unexpected value (-0x3D62)
Mustafa Ramadhan
25 July 2016, 04:20
Content of .pem file in Hiawatha is combine of .key, .crt and .ca files.
This topic has been closed.