thinkst / opencanary

Modular and decentralised honeypot
http://opencanary.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 360 forks source link

Add https #221

Closed HybridAU closed 1 year ago

HybridAU commented 2 years ago

This PR adds HTTPS as an option addressing issue #146 it also bumps the version of cryptography which fixes #214

It's pretty much a straight copy of the HTTP module, but with SSL.

Users can provide their own certificate/key at the path from the https.certificate and https.key settings, by default /etc/ssl/opencanary/opencanary.pem, /etc/ssl/opencanary/opencanary.key respectively.

Or if no certificate is provided, a self signed certificate is generated to look like a Synology NAS.

jayjb commented 1 year ago

Sorry for the delay by the way.

HybridAU commented 1 year ago

That sounds like a good idea, I'll update the PR in the next couple of days, and no worries about the delay I'm pretty busy with life too :+1:

HybridAU commented 1 year ago

I've updated this PR to import from the http module :slightly_smiling_face:

jayjb commented 1 year ago

Hi @HybridAU,

Thanks so much for these changes and additions! They are so awesome.