mac command not found certutil
时间: 2023-11-08 08:03:35 浏览: 48
这个问题可能是因为您的macOS没有安装certutil工具。您可以尝试通过以下命令安装certutil:
```
brew install nss
```
如果已经安装了nss,可以尝试将certutil添加到PATH环境变量中:
```
export PATH="/usr/local/opt/nss/bin:$PATH"
```
相关问题
C:\Windows\system32>certutil -addstore root c:\tmp\rootca.cer root "受信任的根证书颁发机构" DecodeFile 返回了 系统找不到指定的路径。 0x80070003 (WIN32: 3 ERROR_PATH_NOT_FOUND) CertUtil: -addstore 失败: 0x80070003 (WIN32: 3 ERROR_PATH_NOT_FOUND) CertUtil: 系统找不到指定的路径。
您在执行 `certutil -addstore root c:\tmp\rootca.cer root "受信任的根证书颁发机构"` 命令时遇到了一个错误。错误代码 0x80070003 (WIN32: 3 ERROR_PATH_NOT_FOUND) 表示系统找不到指定的路径。
根据您提供的信息,这个错误可能是由于 `c:\tmp` 目录不存在而导致的。请确保 `c:\tmp` 目录存在并且具有正确的权限。如果目录不存在,请创建它,然后重新执行命令。
另外,还要确保 `rootca.cer` 文件存在于 `c:\tmp` 目录中。如果文件不存在,请检查文件路径是否正确,并将证书文件移动到正确的位置。
如果您仍然遇到问题,请提供更多详细信息,以便我能够更好地帮助您解决这个问题。
certutil命令
certutil是一个Windows操作系统中的命令行工具,用于执行与证书和密钥相关的操作。它可以用于查看、安装、导出和删除证书,生成证书请求以及执行其他与证书相关的任务。
一些常见的certutil命令包括:
1. certutil -viewstore:查看计算机或用户证书存储中的证书。
2. certutil -addstore:将证书添加到计算机或用户证书存储。
3. certutil -delstore:从计算机或用户证书存储中删除证书。
4. certutil -importpfx:从PFX文件导入证书到计算机或用户证书存储。
5. certutil -exportpfx:将证书从计算机或用户证书存储中导出到PFX文件。
6. certutil -repairstore:修复证书存储中的损坏或错误的证书。
以上只是一些常见的用法,还有其他更多的参数和选项可供使用。你可以通过在命令提示符下输入"certutil /?"来查看完整的帮助信息和用法示例。
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)