check whether or not a certificate already exists, implement common name filtering