Add docstring to certificate verification