java.io.IOException: HTTPS hostname wrong: should be <bla.bla.com>, but cert says <CN=*.apigee.co>

I am running into this strange error : 

java.io.IOException: HTTPS hostname wrong:  should be <bla.bla.com>, but cert says <CN=*.apigee.net>

I have proper certificate for bla.bla.com.  However it looks like my java application is finding the apigee cert instead of my bla.bla.com cert.   I don't understand why this is happening.  Any help would be much appreciated.

0 1 446
1 REPLY 1

not sure, you'll need to provide more information about where you see the error, how you are invoking the client, what is connecting to what, lots of other stuff.