File tree 1 file changed +5
-3
lines changed
Sources/SwiftyProvisioningProfile/Model 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 {
17
17
18
18
public let notValidBefore : Date
19
19
public let notValidAfter : Date
20
-
20
+ public let serialNumber : String
21
+
21
22
public let issuerCommonName : String
22
23
public let issuerCountryName : String
23
24
public let issuerOrgName : String
@@ -27,13 +28,14 @@ public struct Certificate: Encodable, Equatable {
27
28
public let countryName : String
28
29
public let orgName : String ?
29
30
public let orgUnit : String
30
-
31
+
31
32
init ( results: [ CFString : Any ] , commonName: String ? ) throws {
32
33
self . commonName = commonName
33
34
34
35
notValidBefore = try Certificate . getValue ( for: kSecOIDX509V1ValidityNotBefore, from: results)
35
36
notValidAfter = try Certificate . getValue ( for: kSecOIDX509V1ValidityNotAfter, from: results)
36
-
37
+ serialNumber = try Certificate . getValue ( for: kSecOIDX509V1SerialNumber, from: results)
38
+
37
39
let issuerName : [ [ CFString : Any ] ] = try Certificate . getValue ( for: kSecOIDX509V1IssuerName, from: results)
38
40
issuerCommonName = try Certificate . getValue ( for: kSecOIDCommonName, fromDict: issuerName)
39
41
issuerCountryName = try Certificate . getValue ( for: kSecOIDCountryName, fromDict: issuerName)
You can’t perform that action at this time.
0 commit comments