A bug introduced in 55a40cc caused the tuftool tuftool root gen-rsa command to be unusable because it caused file paths to be parsed with Url::parse. This commit only uses URL for parsing if the SSM or KMS schemes are found. Otherwise it is assumed to be a file path and parsed with PathBuf.
Issue #, if available:
Closes #728
Description of changes:
A bug introduced in 55a40cc caused the tuftool tuftool root gen-rsa command to be unusable because it caused file paths to be parsed with Url::parse. This commit only uses URL for parsing if the SSM or KMS schemes are found. Otherwise it is assumed to be a file path and parsed with PathBuf.
Testing
This now works (previously would error):
This also works (using
aws-kms
):By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.