in android, want make url connection https url. after connection opened want able read certificate server , obtain issued common name , organisation strings?
is possible? if best approach?
so far have been using httpsurlconnection as:
httpsurlconnection urlconnection = (httpsurlconnection) url.openconnection(); urlconnection.getinputstream(); x509certificate cert = (x509certificate) urlconnection.getservercertificates()[0]; but after point, not sure how specific certificate details? not sure, if right approach.
Comments
Post a Comment