[mono-android] Using a keystore for Server cert. validation check?

moelski dominik at logview.info
Fri Nov 11 02:21:24 EST 2011


Hi @all, 

at the moment we have a big problem calling a webservice with SSL.

As far as I know now you can´t simply import the needed certificates by
copiing them to the sd card and install them. As mentioned here: 
http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certificates/
you have to set up your private keystore und use it. 

So maybe someone here can give me a hint on how to get this working. I wrote
an email to the xamarin support but got no response in the last 3 days 

What I need to do is to validate the server certificate. This is done with 
*ServicePointManager.ServerCertificateValidationCallback*. 

But how can I use my own certifictes (within the keystore) for this? Or is
there any other solution without a keystore?

btw. I wrote a simple console application to check the
ServerCertificateValidationCallback with the certificates we will use on
android. It worked very nice after I imported the certificates into the
windows cert store. So the certificates are ok. 

Hope on any help. Thx !

Dominik

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Using-a-keystore-for-Server-cert-validation-check-tp4983610p4983610.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list