From f6d920bc4741255cd334f0337852f5bbb13e490f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 9 Sep 2020 07:35:47 +0300 Subject: GmCerts: Certificate issuer It makes sense for a self-signed certificate to be issued by the same entity who is the subject. --- src/gmcerts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gmcerts.c') 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 const iString *email, const iString *userId, const iString *domain, const iString *org, const iString *country) { const iTlsCertificateName names[] = { - { issuerCommonName_TlsCertificateNameType, collectNewCStr_String("Lagrange v" LAGRANGE_APP_VERSION) }, - { issuerDomain_TlsCertificateNameType, collectNewCStr_String("lagrange.skyjake.fi") }, + { issuerCommonName_TlsCertificateNameType, commonName }, { subjectCommonName_TlsCertificateNameType, commonName }, { subjectEmailAddress_TlsCertificateNameType, !isEmpty_String(email) ? email : NULL }, { subjectUserId_TlsCertificateNameType, !isEmpty_String(userId) ? userId : NULL }, -- cgit v1.2.3