File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Sources/SwiftyProvisioningProfile/Model Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ public struct Certificate: Encodable, Equatable {
1717
1818 public let notValidBefore : Date
1919 public let notValidAfter : Date
20-
20+ public let serialNumber : String
21+
2122 public let issuerCommonName : String
2223 public let issuerCountryName : String
2324 public let issuerOrgName : String
@@ -27,13 +28,14 @@ public struct Certificate: Encodable, Equatable {
2728 public let countryName : String
2829 public let orgName : String ?
2930 public let orgUnit : String
30-
31+
3132 init ( results: [ CFString : Any ] , commonName: String ? ) throws {
3233 self . commonName = commonName
3334
3435 notValidBefore = try Certificate . getValue ( for: kSecOIDX509V1ValidityNotBefore, from: results)
3536 notValidAfter = try Certificate . getValue ( for: kSecOIDX509V1ValidityNotAfter, from: results)
36-
37+ serialNumber = try Certificate . getValue ( for: kSecOIDX509V1SerialNumber, from: results)
38+
3739 let issuerName : [ [ CFString : Any ] ] = try Certificate . getValue ( for: kSecOIDX509V1IssuerName, from: results)
3840 issuerCommonName = try Certificate . getValue ( for: kSecOIDCommonName, fromDict: issuerName)
3941 issuerCountryName = try Certificate . getValue ( for: kSecOIDCountryName, fromDict: issuerName)
You can’t perform that action at this time.
0 commit comments