diff options
Diffstat (limited to 'crypto/src/x509/X509CertificateParser.cs')
-rw-r--r-- | crypto/src/x509/X509CertificateParser.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/x509/X509CertificateParser.cs b/crypto/src/x509/X509CertificateParser.cs index 6fc1b3ff4..2d6da0f23 100644 --- a/crypto/src/x509/X509CertificateParser.cs +++ b/crypto/src/x509/X509CertificateParser.cs @@ -143,6 +143,10 @@ namespace Org.BouncyCastle.X509 return ReadDerCertificate(asn1In); } } + catch (CertificateException) + { + throw; + } catch (Exception e) { throw new CertificateException("Failed to read certificate", e); |