Modern Apps git

← xtool.git

Fix cert serial number encoding

Commit
b6a40ca5cfac1b2b07cfe5a0b5646fbb3cdd6128
Author
Kabir Oberai <[email protected]>
When
2024-12-21 20:03 UTC (1 year ago)
Parents
08d9905

Diff

Sources/Supersign/Model/Certificate.swift
diff --git a/Sources/Supersign/Model/Certificate.swift b/Sources/Supersign/Model/Certificate.swiftindex 0a3e690..c05e010 100644--- a/Sources/Supersign/Model/Certificate.swift+++ b/Sources/Supersign/Model/Certificate.swift@@ -51,7 +51,7 @@ public struct Certificate: Codable, Sendable {     public func serialNumber() -> String {         // big endian, hex-encoded         let content = raw.serialNumber.bytes.lazy-            .map { String($0, radix: 16, uppercase: true) }+            .map { String(format: "%02hhX", $0) }             .joined()             .drop { $0 == "0" }         return String(content)