mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-12 16:26:37 +00:00
4736cccda1
This adds a certificate lifetime parameter to our certificate generation and hard codes it to twenty years in some uninteresting places. In the main binary there are a couple of constants but it results in twenty years for the device certificate and 820 days for the HTTPS one. 820 is less than the 825 maximum Apple allows nowadays. This also means we must be prepared for certificates to expire, so I add some handling for that and generate a new certificate when needed. For self signed certificates we regenerate a month ahead of time. For other certificates we leave well enough alone. |
||
---|---|---|
.. | ||
testdata | ||
api_auth_test.go | ||
api_auth.go | ||
api_csrf.go | ||
api_statics.go | ||
api_test.go | ||
api.go | ||
debug.go | ||
mocked_config_test.go | ||
mocked_connections_test.go | ||
mocked_cpuusage_test.go | ||
mocked_discovery_test.go | ||
mocked_events_test.go | ||
mocked_logger_test.go | ||
mocked_model_test.go | ||
support_bundle.go |