【发布时间】:2022-01-20 04:24:08
【问题描述】:
我在 Windows 上并在 Windows 上安装了该步骤。 安装成功。
step certificate inspect https://smallstep.com
当我运行它时,它被确认了。
但是当我在 python 中运行下面的代码时,它引发了一个错误。
result = subprocess.run(['step', 'ca', 'certificate', '--ca-url=https://x.x.x.x', email, crt, key, '--root=root.crt', '--provisioner-password-file=provision.txt'])
这是错误:
FileNotFoundError: [WinError 2] The system cannot find the file specified
但是文件路径是正确的。我确定。
【问题讨论】:
标签: python subprocess