Added CertificateNotFoundException to imrpve API a bit.