test reading and verifying certificates (X.509) on Android. actually, it's the same as in Java.