C# Snippet to Check the Type of an SSL-Certificate