diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-09 07:35:47 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-09 07:35:47 +0300 |
commit | f6d920bc4741255cd334f0337852f5bbb13e490f (patch) | |
tree | 7a2ece4f933ea0d0282e48621709a46eaea1e8a1 | |
parent | c3e0b0f6a8cdadff82dfe2cf8b706f4716cb367e (diff) |
GmCerts: Certificate issuer
It makes sense for a self-signed certificate to be issued by the same entity who is the subject.
-rw-r--r-- | src/gmcerts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gmcerts.c b/src/gmcerts.c index addd75d3..6370057d 100644 --- a/src/gmcerts.c +++ b/src/gmcerts.c | |||
@@ -431,8 +431,7 @@ iGmIdentity *newIdentity_GmCerts(iGmCerts *d, int flags, iDate validUntil, const | |||
431 | const iString *email, const iString *userId, const iString *domain, | 431 | const iString *email, const iString *userId, const iString *domain, |
432 | const iString *org, const iString *country) { | 432 | const iString *org, const iString *country) { |
433 | const iTlsCertificateName names[] = { | 433 | const iTlsCertificateName names[] = { |
434 | { issuerCommonName_TlsCertificateNameType, collectNewCStr_String("Lagrange v" LAGRANGE_APP_VERSION) }, | 434 | { issuerCommonName_TlsCertificateNameType, commonName }, |
435 | { issuerDomain_TlsCertificateNameType, collectNewCStr_String("lagrange.skyjake.fi") }, | ||
436 | { subjectCommonName_TlsCertificateNameType, commonName }, | 435 | { subjectCommonName_TlsCertificateNameType, commonName }, |
437 | { subjectEmailAddress_TlsCertificateNameType, !isEmpty_String(email) ? email : NULL }, | 436 | { subjectEmailAddress_TlsCertificateNameType, !isEmpty_String(email) ? email : NULL }, |
438 | { subjectUserId_TlsCertificateNameType, !isEmpty_String(userId) ? userId : NULL }, | 437 | { subjectUserId_TlsCertificateNameType, !isEmpty_String(userId) ? userId : NULL }, |