www.SonyEricsson.com ContactDeveloper World   Contact中文
Contact Member Login Contact Register Help Contact Help Search

This Question is Possibly Answered

1 "very helpful" answer available (10 pts) 2 "helpful" answers available (5 pts)
1 Replies Last post: Jun 5, 2009 11:13 AM by fredrikj  
idomeneas Newbie 11 posts since
Mar 14, 2008
Currently Being Moderated

Jun 5, 2009 8:03 AM

j2me SHA1 Fingerprint SSL Server Certificate

Hello all,

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?


thanks

Nik

fredrikj Professional 64 posts since
Mar 20, 2005
Currently Being Moderated
1. Jun 5, 2009 11:13 AM in response to: idomeneas
Re: j2me SHA1 Fingerprint SSL Server Certificate

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().

More Like This

  • Retrieving data ...