mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-09 02:24:26 -05:00
* Create directories with 755 permissions, SSL certs with 644, and keys with 600. * Check SSL file permissions during chia_init(). Exits if permissions are incorrect. * Overwrite certs/keys instead of failing to write * Skip SSL file permission checks on Windows (requires checking ACLs) * Check SSL file permissions when creating an ssl_context * Skip check_ssl on Windows. Handle some SSLInvalidPermissions exceptions. * Added a few comments * Added chia init --fix-ssl-permissions option to attempt to fix SSL file permission issues. Update imported cert permissions when using chia init -c. Code cleanup/restructuring. * Return a tuple instead of a list * LGTM and other minor fixes * Fixed SSL test breakage when calling ssl_context_for_client. The ca_crt param was being passed in as both the cert and private key, triggering the permission check failure. * Don't exit if SSL file permissions issues are found * Tweak the exception types that are raised from traverse_dict