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

0

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

Nick
posta 2 mesi fa318 visualizzazioni
1 Risposta
0

Hi 你好:

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

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

profile picture
con risposta 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande