From 0121e2492c4e05e29fb44ce9ee96af4d71fb8d5d Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 19 Apr 2023 23:24:17 +0200 Subject: [PATCH] Fix wrong variable in documentation (#70) `name` doesn't exist in this context and probably refers to `subjectName` and `issuerName` --- Sources/X509/Docs.docc/Creating Certificates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/X509/Docs.docc/Creating Certificates.md b/Sources/X509/Docs.docc/Creating Certificates.md index 603d492..8067efd 100644 --- a/Sources/X509/Docs.docc/Creating Certificates.md +++ b/Sources/X509/Docs.docc/Creating Certificates.md @@ -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)