我正在使用网络协会 6.5.8命令行实用程序解密输入的文件,以便在SSIS作业中导入。这是一个非常古老的遗留系统,所以我不能改变解密方法。
手动密码:
如果我在SSIS中创建了一个新的执行过程任务,并传递下面的命令行参数,那么PGP将请求一个密码解锁密钥。手动提供密码允许PGP成功解密文件。
-o L:\xxxx\xxxxx\MyFile_decrypted.xml L:\xxxx\xxxxx\MyFile_Encrypted.xml +pubring=L:\pgp\keyring\pubring.pkr +secring=L:\pgp\keyring\secring.skr +force

自动密码:
查看文档,如下所示,我需要使用-passphrase参数提供passkey。


更改参数以添加密码短语
-o L:\xxxx\xxxxx\MyFile_decrypted.xml L:\xxxx\xxxxx\MyFile_Encrypted.xml +pubring=L:\pgp\keyring\pubring.pkr +secring=L:\pgp\keyring\secring.skr +force --passphrase abcdef我遇到的问题是,我需要提供键作为命令行参数的一部分,但到目前为止,这还不起作用。如果我在SSIS中运行得到一个进程错误,直接通过命令行运行的the process exit code was "5" while the expected was "0".也会提供类似的失败。
提供密码短语参数的正确语法是什么?
发布于 2014-12-02 10:48:27
看起来我有一个更新版本的文档。
6.5.x的文档使用-z参数传递密码。
-z Identifies the passphrase on the command line. ( From Page 13 )改变我的论点如下,解决了这个问题。
-o L:\xxxx\xxxxx\MyFile_decrypted.xml L:\xxxx\xxxxx\MyFile_Encrypted.xml +pubring=L:\pgp\keyring\pubring.pkr +secring=L:\pgp\keyring\secring.skr +force -z abcdefhttps://stackoverflow.com/questions/27247120
复制相似问题