在 python 应用程序中添加自签名证书的位置 - docker

问题描述

我有一个已停靠的 Python 应用程序。它调用一个休息服务,它是 https 并管理与内置自签名证书的连接。当我们尝试调用 API 时,它返回以下错误 -

javax.net.ssl.SSLHandshakeException: PKIX path building Failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  

我们在哪里可以在 docker 中添加自签名证书?我们可以将其复制到 docker 中的某个位置,以便可以执行 API 吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)