Disable hostname verification in io.netty.handler.ssl.Sslcontext

前端 未结 2 961
面向向阳花
面向向阳花 2021-01-14 15:41

Is there a way to disable hostname verification for io.netty.handler.ssl.Sslcontext?

I have this code:

sslContext = SslContextBuilder
        .forCli         


        
2条回答
  •  隐瞒了意图╮
    2021-01-14 15:49

    This explains how you can import the certificate of the host you want to connect to: https://stackoverflow.com/a/36483016/5296666

提交回复
热议问题