您好,我正在尝试将以下bash代码更改为Python 3:
CERT_KEY="$(cat looking_secret_route |
python3 -c "import sys, json; print(json.load(sys.stdin)['data']['my.key'])"|
base64 -d)"
CERTIFICATE="$(cat looking_secret_route |
python3 -c "import sys, json; print(json.load(sys.stdin)['data']['my.cr'])"|
base64 -d)"