mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:34:41 +02:00
The account path used to store user credentials is calculated from the domain used to contact the relevant ACME CA server. For instance, if the directory URL is https://my.domain.net/directory, then the account path will be $CONFIG_DIR/accounts/my.domain.net. However, if non standard HTTP/HTTPS port need to be used, colons will be involved. For instance, https://my.domain.net:14000/directory will give $CONFIG_DIR/accounts/my.domain.net:14000. Colons in paths are supported on POSIX systems, but not on Windows (it is reserved for the root drive letter). This PR replaces colons by underscores for account paths on Windows, and leaves them untouched on Linux. * Fix account path on Windows when colons are involved * Protect colon in drive letter * Refactor compat platform specific logic