2015-07-13 130 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”。

相关问题