summary refs log tree commit diff
path: root/crypto/src/x509/extension
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-30 22:39:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-30 22:39:07 +0700
commitb9b0bae81c983a9076c4749eace11f4e4c77e075 (patch)
tree106753e5e944fb9c3a93bd9c064c8378ec786b2c /crypto/src/x509/extension
parentAdd API TODOs for factories (diff)
downloadBouncyCastle.NET-ed25519-b9b0bae81c983a9076c4749eace11f4e4c77e075.tar.xz
Refactoring around X509
Diffstat (limited to 'crypto/src/x509/extension')
-rw-r--r--crypto/src/x509/extension/AuthorityKeyIdentifierStructure.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/src/x509/extension/AuthorityKeyIdentifierStructure.cs b/crypto/src/x509/extension/AuthorityKeyIdentifierStructure.cs
index 006dc009b..abd6bb7cc 100644
--- a/crypto/src/x509/extension/AuthorityKeyIdentifierStructure.cs
+++ b/crypto/src/x509/extension/AuthorityKeyIdentifierStructure.cs
@@ -25,13 +25,11 @@ namespace Org.BouncyCastle.X509.Extension
 		{
 		}
 
-		private static Asn1Sequence FromCertificate(
-			X509Certificate certificate)
+		private static Asn1Sequence FromCertificate(X509Certificate certificate)
 		{
 			try
 			{
-				GeneralName genName = new GeneralName(
-					PrincipalUtilities.GetIssuerX509Principal(certificate));
+				GeneralName genName = new GeneralName(certificate.IssuerDN);
 
 				if (certificate.Version == 3)
 				{