From 9f74187a5de85da52ef9158b756a70cbe6ed7306 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Wed, 4 Dec 2024 15:52:43 +1300 Subject: [PATCH] no need to prepend DNS --- Networking/Sources/Networking/PKCS12.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Networking/Sources/Networking/PKCS12.swift b/Networking/Sources/Networking/PKCS12.swift index a352477f..d7e2607f 100644 --- a/Networking/Sources/Networking/PKCS12.swift +++ b/Networking/Sources/Networking/PKCS12.swift @@ -89,13 +89,12 @@ public func generateSelfSignedCertificate(privateKey: Ed25519.SecretKey) throws } func generateSubjectAlternativeName(publicKey: Ed25519.PublicKey) -> String { - let base32Encoded = base32Encode(publicKey.data.data) - return "DNS:e\(base32Encoded)" + generateSubjectAlternativeName(pubkey: publicKey.data.data) } func generateSubjectAlternativeName(pubkey: Data) -> String { let base32Encoded = base32Encode(pubkey) - return "DNS:e\(base32Encoded)" + return "e\(base32Encoded)" } func base32Encode(_ data: Data) -> String {