summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/pkcs/test/PKCS12StoreTest.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
index 92ed536f3..9d6f541fa 100644
--- a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
+++ b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
@@ -480,7 +480,7 @@ namespace Org.BouncyCastle.Pkcs.Tests
          + "ADBLMC8wCwYJYIZIAWUDBAIBBCDAU3cgA2uJqlRZ+VamaDDOoqvwwnJKOBUy"
          + "vn/gZKm4FgQU91hwRSdR+ekb4Lt7bjUUxaC/XYYCAgfQ");
 
-	private static readonly byte[] sentrixHard = Base64.Decode(
+	private static readonly byte[] sentrixSoft = Base64.Decode(
            "MIIKgQIBAzCCCj0GCSqGSIb3DQEHAaCCCi4EggoqMIIKJjCCAdoGCSqGSIb3"
          + "DQEHAaCCAcsEggHHMIIBwzCCAb8GCyqGSIb3DQEMCgECoIHMMIHJMBwGCiqG"
          + "SIb3DQEMAQMwDgQItChrbpZXBp8CAgfQBIGoEus4fyZZwKntfPRRch685zDx"
@@ -921,6 +921,14 @@ namespace Org.BouncyCastle.Pkcs.Tests
 			//
 			stream = new MemoryStream(pkcs12nopass, false);
 			store.Load(stream, "".ToCharArray());
+
+			stream = new MemoryStream(sentrixHard, false);
+			store = new Pkcs12StoreBuilder().Build();
+			store.Load(stream, "0000".ToCharArray());
+
+			stream = new MemoryStream(sentrixSoft, false);
+			store = new Pkcs12StoreBuilder().Build();
+			store.Load(stream, "0000".ToCharArray());
 		}
 
 		private void DoTestSupportedTypes(AsymmetricKeyEntry privKey, X509CertificateEntry[] chain)