summary refs log tree commit diff
path: root/crypto/src/x509/X509AttrCertParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/x509/X509AttrCertParser.cs')
-rw-r--r--crypto/src/x509/X509AttrCertParser.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/x509/X509AttrCertParser.cs b/crypto/src/x509/X509AttrCertParser.cs

index 0019a48eb..39727a0e2 100644 --- a/crypto/src/x509/X509AttrCertParser.cs +++ b/crypto/src/x509/X509AttrCertParser.cs
@@ -141,6 +141,10 @@ namespace Org.BouncyCastle.X509 return ReadDerCertificate(new Asn1InputStream(inStream)); } + catch (CertificateException) + { + throw; + } catch (Exception e) { throw new CertificateException(e.ToString());