How to perform various certificate checks