summary refs log tree commit diff
path: root/crypto/src/cms/KeyTransRecipientInformation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/KeyTransRecipientInformation.cs')
-rw-r--r--crypto/src/cms/KeyTransRecipientInformation.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/KeyTransRecipientInformation.cs b/crypto/src/cms/KeyTransRecipientInformation.cs
index 2a40fed06..e09e6015f 100644
--- a/crypto/src/cms/KeyTransRecipientInformation.cs
+++ b/crypto/src/cms/KeyTransRecipientInformation.cs
@@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Cms
                 {
                     Asn1OctetString octs = Asn1OctetString.GetInstance(r.ID);
 
-					rid.SubjectKeyIdentifier = octs.GetOctets();
+					rid.SubjectKeyIdentifier = octs.GetEncoded(Asn1Encodable.Der);
                 }
                 else
                 {