如何解决使用 PKI/CAC 保护的 AGOL python Web 层身份验证
我正在使用 python 脚本连接到 AGOL 要素服务图层,并更新该图层。现在,我使用以下方法访问它:
gis_url = "https://xxxx.maps.arcgis.com" #### Add your username and password
gis_username = 'username'
gis_password = 'password'
gis = arcgis.gis.GIS(gis_url,gis_username,gis_password)
但是,我想在我们启用了 CAC 的 DoD AGOL 门户空间中运行它。我对此很陌生。经过一些研究,我在 ESRI 培训中遇到了这个问题,
print('n\n\nPKI with key and cert files")
gis = GIS("https://portalname.domain.com/webcontext",key file="C:\\Path\\to\\key.pem",cert_file="C:\\path\\to\\cert.pem")
真的有这么简单吗?我在计算机上查找了“key.pem”和“cert.pem”,其中有几个文件。我怎么知道我应该使用哪一个?提前致谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。