S3Client和ApacheHttpClient 如何才能忽略HTTPS证书验证

0

由于我目前的项目需要忽略https证书去请求,因为在builder S3Client的时候指定了endpoint并且指定了内部的域名

Nick
demandé il y a 2 mois317 vues
1 réponse
0

Hi 你好:

你可以尝试调整这个选项,让你的 SDK 信任所有的证书。然而这个方式可能破坏请求链路的安全性,并且可能发生中间人攻击与增加密钥泄漏的的风险,请谨慎使用这个功能。

https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/SdkHttpConfigurationOption.html#TRUST_ALL_CERTIFICATES

profile picture
répondu il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions