Skip to content

Commit

Permalink
no need to prepend DNS (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Dec 4, 2024
1 parent 5a792ab commit 9dd2740
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Networking/Sources/Networking/PKCS12.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9dd2740

Please sign in to comment.