2015-07-13 129 views
0

,而試圖通過使用OpenSSL的工具在PKCS12格式PEM格式的私鑰文件(被Wireshark)轉換成兩個階段得到了下面的錯誤PowerShell的OpenSSL的ObjectNotFound在Windows Server 2012

PS C:\OpenSSL-Win64\bin> openssl pkcs12 -nodes -in test_cer123456.pfx -out key.pem -nocerts -nodes 
openssl : The term 'openssl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again. 
At line:1 char:1 
+ openssl pkcs12 -nodes -in test_cer123456.pfx -out key.pem -nocerts -nodes 
+ ~~~~~~~ 
    + CategoryInfo   : ObjectNotFound: (openssl:String) [], CommandNotFoundException 
    + FullyQualifiedErrorId : CommandNotFoundException 


Suggestion [3,General]: The command openssl was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by 
default. If you trust this command, instead type ".\openssl". See "get-help about_Command_Precedence" for more details. 
PS C:\OpenSSL-Win64\bin> 

有人能幫我解決這個問題嗎?

注:我以下this

回答

0

PowerShell不包括當前目錄作爲搜索路徑的一部分。錯誤消息實際上告訴你這一點,並解釋怎樣做(強調):

建議[3,常規]:該命令的OpenSSL沒有被發現,但確實 在當前位置存在。默認情況下,Windows PowerShell不會從當前位置加載 命令。 如果您信任此 命令,請改爲輸入「。\ openssl」。有關更多詳細信息,請參閱「get-help about_Command_Precedence」。

相關問題