Quick solution, create certificate with cn-- FQDN. Else create certificate with SAN extended attributes.
TNX Manoj On Feb 28, 2017 9:28 PM, "Erwin Hogeweg" <[email protected]> wrote: > Hi, > > I am running DOSGi-1.7.0 on a client with the remote services defined in a > remote-services.xml file. Everything runs fine with http, and now I am > adding https to the mix. The cert. I am using is not valid (not defined) > for the test server so I am getting this message: > > Caused by: java.io.IOException: The https URL hostname does not match the > Common Name (CN) on the server certificate in the client's truststore. > Make sure server certificate is correct, or to disable this check (NOT > recommended for production) set the CXF client TLS configuration property > "disableCNCheck" to true. > > The challenge is to find a way to define this disableCNCheck property. I > have tried a couple of things, but so far no luck. > > I am running the client as stand-alone OSGI app and in a karaf (4.0.8) > environment. > > Anyone have a suggestion? > > Your help is greatly appreciated. > > Kind Regards, > > Erwin > > Erwin Hogeweg > CTO > 3690 Airport Road > Boca Raton, FL 33431 > P. +1 (954) 556-6565 > M. +1 (561) 306-7395 > F. +1 (561) 948-2730 > [Seecago]<http://www.seecago.com> >
