curl - curl 将密码短语与命令行一起传递
问题描述
我正在使用以下命令:
curl -X GET -k --header "Accept: text/plain" --key privateKey.pem --cert publicCert.pem --cacert ca.crt "https://example.org/update"
执行此命令后,系统要求我输入密码:
Enter PEM pass phrase:
如何将短语与命令行一起传递,因此不需要手动干预。
解决方案
正如@dave 所建议的那样,添加--pass成功了
curl -X GET -k --header "Accept: text/plain" --key privateKey.pem --cert publicCert.pem --cacert ca.crt "https://example.org/update" --pass myPassword
推荐阅读
- google-cloud-firestore - 如何获取管道的输出并对 Cloud Firestore 进行读写
- c++ - c++ - 文本 RPG - 使用函数检查有效输入
- python - 如何在 Python 中将值从一个脚本返回到另一个脚本?
- google-apps-script - 在谷歌表格中保存数据范围的功能有时会复制空白单元格,如何让它暂停并等待源数据刷新?
- vue.js - 如何在 nuxt 中使用带有动态路由的 twilio
- javascript - Javascript Delete 不会触发 Java 后端
- c++ - for循环中的caffe forward net不起作用
- javascript - 点击 div 专注于输入
- css - 这些 W3C CSS 验证警告是关于什么的?
- javascript - 将 ASP.NET CORE Tag Helper 实现到 Javascript