在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):arteme/gradle-trust-all开源软件地址(OpenSource Url):https://github.com/arteme/gradle-trust-all开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Gradle "Trust All" PluginThis plugin was born out of necessity for a quick-and-dirty way to use a Maven repository over HTTPS with a self-signed certificate. When working with such a repository in gradle you may get an error:
Usual Java way to handle such scenario would be to download site certificate,
import it into a keystore and use that keystore via the Sometimes you just need an easier way -- disable certificate validation altogether! There are many reasons not to do that, one of them being that this approach makes connections vulnerable to man-in-the-middle attacks. Consider this code a proof-of-concept and accept full responsibility that by using it you're ultimately making an informed bad decision. OriginThe code to disable certificate validation come from this StackOverflow answer, although there are many similar code snippets floating around the web. Using "Trust All" PluginTo use
Then in your project's
That is it. Now certificate validation in gradle is disabled. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论