failMessage" : "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
fun webClient(webclientBuilder: WebClient.Builder): WebClient {
// TODO: SSL 확인 안하는 설정
val sslContext = SslContextBuilder
.forClient()
.trustManager(InsecureTrustManagerFactory.INSTANCE)
.build()
return HttpClient.create()
.secure { t -> t.sslContext(sslContext) }
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, props.connectionTimeout.toMillis().toInt())
.doOnConnected {
it.addHandler(ReadTimeoutHandler(props.readTimeout.toMillis(), TimeUnit.MILLISECONDS))
it.addHandler(WriteTimeoutHandler(props.writeTimeout.toMillis(), TimeUnit.MILLISECONDS))
}.let {
webclientBuilder.clientConnector(ReactorClientHttpConnector(it)).build()
}
}