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:
Lukas Reschke authored and GitHub committed 2023-04-19 23:24:17 +02:00
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)