我在使用子进程调用时遇到问题。我必须运行命令shell:
echo "hello" | openssl -sign -signer client.pem -inkey client.pem -out mail.eml
运行此命令时,我必须输入证书的密码:
Enter pass phrase for client.pem:
我运行命令,但我不知道传球。传球我使用的命令是:
subprocess.call(["echo","hello", "|","openssl","smime","-sign","-signer client.pem","-inkey client.pem","-out mail.eml"],shell=True)
但它不起作用,因为我必须进入通行证。在
目前没有回答
相关问题 更多 >
编程相关推荐