summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/pkcs/Pkcs12Store.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/pkcs/Pkcs12Store.cs b/crypto/src/pkcs/Pkcs12Store.cs
index e65788733..507c0e3ee 100644
--- a/crypto/src/pkcs/Pkcs12Store.cs
+++ b/crypto/src/pkcs/Pkcs12Store.cs
@@ -367,6 +367,10 @@ namespace Org.BouncyCastle.Pkcs
                         keyCerts[name] = certEntry;
                         keys[name] = unmarkedKeyEntry;
                     }
+                    else
+                    {
+                        keys["unmarked"] = unmarkedKeyEntry;
+                    }
                 }
                 else
                 {