mirror of
https://github.com/apple/swift-certificates
synced 2026-11-28 04:54:21 +00:00
Fix wrong variable in documentation (#70)
`name` doesn't exist in this context and probably refers to `subjectName` and `issuerName`
This commit is contained in:
1 parent
b0dda3dc39
commit
0121e2492c
1 file changed
+2
-2
@@ -166,8 +166,8 @@ let certificate = try Certificate(
|
||||
publicKey: key.publicKey,
|
||||
notValidBefore: now,
|
||||
notValidAfter: now.addingTimeInterval(60 * 60 * 24 * 365),
|
||||
issuer: name,
|
||||
subject: name,
|
||||
issuer: issuerName,
|
||||
subject: subjectName,
|
||||
signatureAlgorithm: .ecdsaWithSHA256,
|
||||
extensions: extensions,
|
||||
issuerPrivateKey: key)
|
||||
|
||||
Reference in new issue
Block a user