add error checking for certificate (*.cer) not found