This PR adds support for enabling TLS automatically via the autocert package. In particular, the two new flags -autocert.enabled and -autocert.hostname enable this feature. On the first HTTPS request, ndt-server will automatically try to get a certificate from LetsEncrypt, assuming the requested hostname matches what's in the -autocert.hostname file.
The reason for it being a file is that the in the BYOS scenario the hostname is generated by the autojoin register client and written to a file.
This PR adds support for enabling TLS automatically via the autocert package. In particular, the two new flags
-autocert.enabled
and-autocert.hostname
enable this feature. On the first HTTPS request, ndt-server will automatically try to get a certificate from LetsEncrypt, assuming the requested hostname matches what's in the-autocert.hostname
file.The reason for it being a file is that the in the BYOS scenario the hostname is generated by the autojoin
register
client and written to a file.(FYI @nkinkade )
This change is