Moves verify certificate dialog in separate service in order to use the certificate service in android.