使用python的mcafee API:Url open

2024-09-27 00:14:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用PowerShell中的Python连接到远程McAfee ePO,结果得到了这个错误。在

'mcafee.CommandInvokerError: Failed to reach the server 192.168.58.133:8443. Error/reason: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>'

有人能帮忙吗?在


Tags: theto远程server错误errorurlopenreason
1条回答
网友
1楼 · 发布于 2024-09-27 00:14:33
# -*- coding: utf-8 -*-
import mcafee
import string
import getpass
import os, sys
import sys
print sys.getdefaultencoding()
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

这实际上解决了我所有的麻烦。在

相关问题 更多 >

    热门问题