Java ssl certificate issue -


i'm trying access local host access https site.s url:

​public  static void main(string a[]) {              resttemplate resttemplate = new resttemplate();              string desc = "test comments updates"   string url_1="https://site.s:port/gdhsbsbe";             resttemplate.put(url_1, desc);             system.out.println("finished");  } 

i got exception:

java.security.cert.certificateexception: no name matching site.s found. 

any suggestions how avoid it? there way of getting certificate within program.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -