Is there a way in j2me to "calculate" the SHA1 Fingerprint of a Server SSL Certificate that it is exchange during an HttpsConnection? i know that there is only custom implementations of sha1 algorithm in j2me like http://www.intertwingly.net/blog/200...-SHA1-for-J2ME If this implementation is ok, how i can use this to solve my problem? How i can acquire the Server Certificate As String And Produce his FingerPrint?
I believe you should be able to verify the server's authority using the httpsconnection's certificate. Just retrieve the javax.microedition.pki.Certificate instance using httpsConnection.getSecurityInfo().getServerCertificate().