2014-12-02 22 views
0

我使用Network Associates PGP 6.5.8命令行實用程序解密傳入文件以便在SSIS作業中導入。這是一個非常古老的遺留系統的一方,所以我不能改變解密方法。運行Network Associates來自SSIS的PGP命令行

手冊密碼:

如果我創建在SSIS一個新Execute Process Task並通過以下命令行參數,然後PGP要求一個passpharse解鎖密鑰。手動提供密碼允許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 

enter image description here

自動口令:

望着文檔,如下面,我需要使用--passphrase參數

enter image description here

提供密鑰enter image description here

更改參數添加密碼

-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".通過命令行直接運行也會導致類似的錯誤。

提供密碼參數的正確語法是什麼?

回答

0

看起來像我有一個較新版本的文檔。

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 abcdef