From baf2c4f9df2c134461a1146c245b6dc1094faaa0 Mon Sep 17 00:00:00 2001 From: Mikhail Knyazhev Date: Tue, 30 Dec 2025 03:07:35 +0300 Subject: [PATCH 1/5] change pki --- go.mod | 2 +- go.sum | 2 ++ pki/common.go | 6 +++--- pki/config.go | 17 +++++------------ pki/generate_ca.go | 8 ++++---- pki/generate_ca_inter.go | 2 +- pki/generate_crt.go | 4 ++-- pki/generate_csr.go | 4 ++-- 8 files changed, 20 insertions(+), 25 deletions(-) diff --git a/go.mod b/go.mod index 5dcad48..8067767 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.25.0 require ( go.osspkg.com/casecheck v0.3.0 go.osspkg.com/errors v0.4.0 - go.osspkg.com/ioutils v0.7.3 + go.osspkg.com/ioutils v0.7.4 go.osspkg.com/random v0.5.0 go.osspkg.com/syncing v0.4.3 golang.org/x/crypto v0.46.0 diff --git a/go.sum b/go.sum index d7629f0..0504b20 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ go.osspkg.com/errors v0.4.0 h1:E17+WyUzTXEHCTxGm8lOMPOOojzHG1lsOuQtTVGoATQ= go.osspkg.com/errors v0.4.0/go.mod h1:s75ZovPemYtrCtRPVsbQNq9MgMbmLMK1NEypr+uwjXI= go.osspkg.com/ioutils v0.7.3 h1:QF+Ra0bHoU3MGMGH5PGdV2lRLq1rWPdv/OB+v5UTjkI= go.osspkg.com/ioutils v0.7.3/go.mod h1:RO/43IM//Wq8RnLvEzivDAuM37mnLW3eWxTCVmkUaY4= +go.osspkg.com/ioutils v0.7.4 h1:Z8Y4jYYmLGWcvHZMLjbai+s48GmHxjMuepsxZcjF5X4= +go.osspkg.com/ioutils v0.7.4/go.mod h1:pPIsTL1w1+ESrGTeHDCd6cKsujeWvschxGGP5FqrAqc= go.osspkg.com/random v0.5.0 h1:6x2CQ5Vb6PVyuGi6Ao3K6Pr2fzVviBPCEEJC5HQNSmg= go.osspkg.com/random v0.5.0/go.mod h1:lsg3FI87PQdjhVWIVo2GXyPBclipljUxjMlWqRl2cck= go.osspkg.com/syncing v0.4.3 h1:XioXG9zje1LNCsfQhNHkNPCQqPSJZHWTzM8Xig2zvAU= diff --git a/pki/common.go b/pki/common.go index 9453c5f..7dea36d 100644 --- a/pki/common.go +++ b/pki/common.go @@ -28,18 +28,18 @@ type policyInformation struct { } func marshalPolicyCPSUrl(urls ...string) []byte { - info := policyInformation{ + cpsInfo := policyInformation{ PolicyIdentifier: asn1.ObjectIdentifier{2, 23, 140, 1, 2, 1}, PolicyQualifiers: make([]policyQualifierInfo, 0, len(urls)), } for _, url := range urls { - info.PolicyQualifiers = append(info.PolicyQualifiers, policyQualifierInfo{ + cpsInfo.PolicyQualifiers = append(cpsInfo.PolicyQualifiers, policyQualifierInfo{ PolicyQualifierID: asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 2, 1}, Qualifier: url, }) } - bytes, _ := asn1.Marshal([]policyInformation{info}) + bytes, _ := asn1.Marshal([]policyInformation{cpsInfo}) return bytes } diff --git a/pki/config.go b/pki/config.go index 0acd17c..614ee43 100644 --- a/pki/config.go +++ b/pki/config.go @@ -63,18 +63,11 @@ func (v Config) Subject() pkix.Name { func (v Config) extraExtensions() []pkix.Extension { var result []pkix.Extension - if len(v.CertificatePoliciesURLs) > 0 { - result = append(result, pkix.Extension{ - Id: asn1.ObjectIdentifier{2, 5, 29, 32}, - Critical: false, - Value: marshalPolicyCPSUrl(stringsPrepare(v.CertificatePoliciesURLs)...), - }) - } else { - result = append(result, pkix.Extension{ - Id: asn1.ObjectIdentifier{2, 5, 29, 32, 0}, - Critical: false, - }) - } + result = append(result, pkix.Extension{ + Id: asn1.ObjectIdentifier{2, 5, 29, 32}, + Critical: false, + Value: marshalPolicyCPSUrl(stringsPrepare(v.CertificatePoliciesURLs)...), + }) return result } diff --git a/pki/generate_ca.go b/pki/generate_ca.go index 2aa1ecc..313d6a5 100644 --- a/pki/generate_ca.go +++ b/pki/generate_ca.go @@ -31,13 +31,13 @@ func NewCA( Subject: conf.Subject(), NotBefore: currTime, NotAfter: currTime.Add(deadline), - KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign | x509.KeyUsageCRLSign, + KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign, OCSPServer: stringsPrepare(conf.OCSPServerURLs), IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), - ExtraExtensions: conf.extraExtensions(), - MaxPathLen: intermediateCount, - MaxPathLenZero: intermediateCount <= 0, + //ExtraExtensions: conf.extraExtensions(), + MaxPathLen: intermediateCount, + MaxPathLenZero: intermediateCount <= 0, } algName, ok := signatures.Get(template.SignatureAlgorithm) diff --git a/pki/generate_ca_inter.go b/pki/generate_ca_inter.go index 464bcf1..5c6d6d7 100644 --- a/pki/generate_ca_inter.go +++ b/pki/generate_ca_inter.go @@ -42,7 +42,7 @@ func NewIntermediateCA( CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), ExtraExtensions: conf.extraExtensions(), MaxPathLenZero: level <= 0, - MaxPathLen: level, + MaxPathLen: max(0, level), } if !rootCA.IsValidPair() { diff --git a/pki/generate_crt.go b/pki/generate_crt.go index 71b10e9..6050d95 100644 --- a/pki/generate_crt.go +++ b/pki/generate_crt.go @@ -47,8 +47,8 @@ func NewCRT( Subject: conf.Subject(), NotBefore: currTime, NotAfter: currTime.Add(deadline), - KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment, - ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, + KeyUsage: x509.KeyUsageDigitalSignature, + ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, OCSPServer: stringsPrepare(conf.OCSPServerURLs), IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), diff --git a/pki/generate_csr.go b/pki/generate_csr.go index 4832b96..dd88927 100644 --- a/pki/generate_csr.go +++ b/pki/generate_csr.go @@ -99,8 +99,8 @@ func SignCSR( Subject: csr.Subject, NotBefore: currTime, NotAfter: currTime.Add(deadline), - KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment, - ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, + KeyUsage: x509.KeyUsageDigitalSignature, + ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, OCSPServer: stringsPrepare(conf.OCSPServerURLs), IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), From fecfcf413fee6b9da8a73422632cc9c964fbfce0 Mon Sep 17 00:00:00 2001 From: Mikhail Knyazhev Date: Tue, 30 Dec 2025 04:46:58 +0300 Subject: [PATCH 2/5] change pki --- pki/generate_ca_inter.go | 6 +++--- pki/generate_crt.go | 2 +- pki/generate_csr.go | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pki/generate_ca_inter.go b/pki/generate_ca_inter.go index 5c6d6d7..99bd463 100644 --- a/pki/generate_ca_inter.go +++ b/pki/generate_ca_inter.go @@ -40,9 +40,9 @@ func NewIntermediateCA( OCSPServer: stringsPrepare(conf.OCSPServerURLs), IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), - ExtraExtensions: conf.extraExtensions(), - MaxPathLenZero: level <= 0, - MaxPathLen: max(0, level), + //ExtraExtensions: conf.extraExtensions(), + MaxPathLenZero: level <= 0, + MaxPathLen: max(0, level), } if !rootCA.IsValidPair() { diff --git a/pki/generate_crt.go b/pki/generate_crt.go index 6050d95..8374f79 100644 --- a/pki/generate_crt.go +++ b/pki/generate_crt.go @@ -52,7 +52,7 @@ func NewCRT( OCSPServer: stringsPrepare(conf.OCSPServerURLs), IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), - ExtraExtensions: conf.extraExtensions(), + //ExtraExtensions: conf.extraExtensions(), } if template.NotAfter.After(rootCA.Crt.NotAfter) { diff --git a/pki/generate_csr.go b/pki/generate_csr.go index dd88927..050bc70 100644 --- a/pki/generate_csr.go +++ b/pki/generate_csr.go @@ -104,9 +104,9 @@ func SignCSR( OCSPServer: stringsPrepare(conf.OCSPServerURLs), IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), - ExtraExtensions: conf.extraExtensions(), - DNSNames: csr.DNSNames, - IPAddresses: csr.IPAddresses, + //ExtraExtensions: conf.extraExtensions(), + DNSNames: csr.DNSNames, + IPAddresses: csr.IPAddresses, } publicKeyBytes, err := x509.MarshalPKIXPublicKey(csr.PublicKey) From d7caf5d4a0cce0dfe74ca4aa1455784fbcd5643a Mon Sep 17 00:00:00 2001 From: Mikhail Knyazhev Date: Tue, 30 Dec 2025 05:23:22 +0300 Subject: [PATCH 3/5] change pki --- pki/generate_ca.go | 15 +++++++-------- pki/generate_crt.go | 13 ++++++------- pki/generate_csr.go | 13 ++++++------- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/pki/generate_ca.go b/pki/generate_ca.go index 313d6a5..5cd9239 100644 --- a/pki/generate_ca.go +++ b/pki/generate_ca.go @@ -7,7 +7,6 @@ package pki import ( "crypto/rand" - "crypto/sha256" "crypto/x509" "fmt" "math/big" @@ -55,13 +54,13 @@ func NewCA( return nil, fmt.Errorf("failed generating private key: %w", err) } - publicKeyBytes, err := x509.MarshalPKIXPublicKey(key.Public()) - if err != nil { - return nil, fmt.Errorf("failed marshaling public key: %w", err) - } - publicKeyHash := sha256.Sum256(publicKeyBytes) - template.SubjectKeyId = publicKeyHash[:20] - template.AuthorityKeyId = publicKeyHash[:20] + //publicKeyBytes, err := x509.MarshalPKIXPublicKey(key.Public()) + //if err != nil { + // return nil, fmt.Errorf("failed marshaling public key: %w", err) + //} + //publicKeyHash := sha256.Sum256(publicKeyBytes) + //template.SubjectKeyId = publicKeyHash[:20] + //template.AuthorityKeyId = publicKeyHash[:20] b, err := x509.CreateCertificate(rand.Reader, template, template, key.Public(), key) if err != nil { diff --git a/pki/generate_crt.go b/pki/generate_crt.go index 8374f79..5c49c6c 100644 --- a/pki/generate_crt.go +++ b/pki/generate_crt.go @@ -7,7 +7,6 @@ package pki import ( "crypto/rand" - "crypto/sha256" "crypto/x509" "fmt" "math/big" @@ -86,12 +85,12 @@ func NewCRT( return nil, fmt.Errorf("failed generating private key: %w", err) } - publicKeyBytes, err := x509.MarshalPKIXPublicKey(key.Public()) - if err != nil { - return nil, fmt.Errorf("failed marshaling public key: %w", err) - } - publicKeyHash := sha256.Sum256(publicKeyBytes) - template.SubjectKeyId = publicKeyHash[:20] + //publicKeyBytes, err := x509.MarshalPKIXPublicKey(key.Public()) + //if err != nil { + // return nil, fmt.Errorf("failed marshaling public key: %w", err) + //} + //publicKeyHash := sha256.Sum256(publicKeyBytes) + //template.SubjectKeyId = publicKeyHash[:20] b, err := x509.CreateCertificate(rand.Reader, template, rootCA.Crt, key.Public(), rootCA.Key) if err != nil { diff --git a/pki/generate_csr.go b/pki/generate_csr.go index 050bc70..80a4676 100644 --- a/pki/generate_csr.go +++ b/pki/generate_csr.go @@ -7,7 +7,6 @@ package pki import ( "crypto/rand" - "crypto/sha256" "crypto/x509" "fmt" "math/big" @@ -109,12 +108,12 @@ func SignCSR( IPAddresses: csr.IPAddresses, } - publicKeyBytes, err := x509.MarshalPKIXPublicKey(csr.PublicKey) - if err != nil { - return nil, fmt.Errorf("failed marshaling public key: %w", err) - } - publicKeyHash := sha256.Sum256(publicKeyBytes) - template.SubjectKeyId = publicKeyHash[:20] + //publicKeyBytes, err := x509.MarshalPKIXPublicKey(csr.PublicKey) + //if err != nil { + // return nil, fmt.Errorf("failed marshaling public key: %w", err) + //} + //publicKeyHash := sha256.Sum256(publicKeyBytes) + //template.SubjectKeyId = publicKeyHash[:20] b, err := x509.CreateCertificate(rand.Reader, template, rootCA.Crt, csr.PublicKey, rootCA.Key) if err != nil { From 8c5ee1a284f10f936ece19dd4e4b8625df99864c Mon Sep 17 00:00:00 2001 From: Mikhail Knyazhev Date: Tue, 30 Dec 2025 06:38:19 +0300 Subject: [PATCH 4/5] change pki --- pki/generate_ca.go | 8 -------- pki/generate_ca_inter.go | 3 ++- pki/generate_crt.go | 1 + pki/generate_csr.go | 1 + 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/pki/generate_ca.go b/pki/generate_ca.go index 5cd9239..20ae9e8 100644 --- a/pki/generate_ca.go +++ b/pki/generate_ca.go @@ -54,14 +54,6 @@ func NewCA( return nil, fmt.Errorf("failed generating private key: %w", err) } - //publicKeyBytes, err := x509.MarshalPKIXPublicKey(key.Public()) - //if err != nil { - // return nil, fmt.Errorf("failed marshaling public key: %w", err) - //} - //publicKeyHash := sha256.Sum256(publicKeyBytes) - //template.SubjectKeyId = publicKeyHash[:20] - //template.AuthorityKeyId = publicKeyHash[:20] - b, err := x509.CreateCertificate(rand.Reader, template, template, key.Public(), key) if err != nil { return nil, fmt.Errorf("failed generating certificate: %w", err) diff --git a/pki/generate_ca_inter.go b/pki/generate_ca_inter.go index 99bd463..51d2c0c 100644 --- a/pki/generate_ca_inter.go +++ b/pki/generate_ca_inter.go @@ -32,6 +32,7 @@ func NewIntermediateCA( BasicConstraintsValid: true, SignatureAlgorithm: confSigAlg, SerialNumber: big.NewInt(serialNumber), + AuthorityKeyId: rootCA.Crt.SubjectKeyId, Subject: conf.Subject(), NotBefore: currTime, NotAfter: currTime.Add(deadline), @@ -41,8 +42,8 @@ func NewIntermediateCA( IssuingCertificateURL: stringsPrepare(conf.IssuingCertificateURLs), CRLDistributionPoints: stringsPrepare(conf.CRLDistributionPointURLs), //ExtraExtensions: conf.extraExtensions(), + MaxPathLen: level, MaxPathLenZero: level <= 0, - MaxPathLen: max(0, level), } if !rootCA.IsValidPair() { diff --git a/pki/generate_crt.go b/pki/generate_crt.go index 5c49c6c..b355579 100644 --- a/pki/generate_crt.go +++ b/pki/generate_crt.go @@ -43,6 +43,7 @@ func NewCRT( BasicConstraintsValid: true, SignatureAlgorithm: confSigAlg, SerialNumber: big.NewInt(serialNumber), + AuthorityKeyId: rootCA.Crt.SubjectKeyId, Subject: conf.Subject(), NotBefore: currTime, NotAfter: currTime.Add(deadline), diff --git a/pki/generate_csr.go b/pki/generate_csr.go index 80a4676..08044d6 100644 --- a/pki/generate_csr.go +++ b/pki/generate_csr.go @@ -95,6 +95,7 @@ func SignCSR( BasicConstraintsValid: true, SignatureAlgorithm: confSigAlg, SerialNumber: big.NewInt(serialNumber), + AuthorityKeyId: rootCA.Crt.SubjectKeyId, Subject: csr.Subject, NotBefore: currTime, NotAfter: currTime.Add(deadline), From fb9648d9e6eeb81164811a75c0634d07d278e7ee Mon Sep 17 00:00:00 2001 From: Mikhail Knyazhev Date: Tue, 19 May 2026 21:24:09 +0300 Subject: [PATCH 5/5] update vendors --- .golangci.yml | 2 +- .lic.yaml | 2 +- LICENSE | 2 +- Makefile | 2 +- aesgcm/aesgcm.go | 2 +- go.mod | 4 ++-- go.sum | 10 ++++------ hash/hash.go | 2 +- pgp/pgp.go | 2 +- pki/alg_ecdsa.go | 2 +- pki/alg_rsa.go | 2 +- pki/alg_type.go | 2 +- pki/common.go | 2 +- pki/config.go | 2 +- pki/encoders.go | 2 +- pki/generate_ca.go | 2 +- pki/generate_ca_inter.go | 2 +- pki/generate_crl.go | 2 +- pki/generate_crt.go | 2 +- pki/generate_csr.go | 2 +- pki/model_certificate.go | 2 +- pki/model_request.go | 2 +- pki/ocsp.go | 2 +- pki/utils.go | 2 +- 24 files changed, 28 insertions(+), 30 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 85e4db0..4aa6f35 100755 --- a/.golangci.yml +++ b/.golangci.yml @@ -60,7 +60,7 @@ linters: - gocyclo - ineffassign - unparam - - unused +# - unused - prealloc - durationcheck - staticcheck diff --git a/.lic.yaml b/.lic.yaml index 090571a..eee591d 100644 --- a/.lic.yaml +++ b/.lic.yaml @@ -1,4 +1,4 @@ -author: Mikhail Knyazhev +author: Mikhail Knyazhev lic_short: "BSD 3-Clause" lic_file: LICENSE ignore_files: diff --git a/LICENSE b/LICENSE index 93caddc..d6c3bf3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2024-2025, Mikhail Knyazhev +Copyright (c) 2024-2026, Mikhail Knyazhev Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/Makefile b/Makefile index 7120e0b..39ba35a 100755 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ SHELL=/bin/bash .PHONY: install install: - go install go.osspkg.com/goppy/v2/cmd/goppy@latest + go install go.osspkg.com/goppy/v3/cmd/goppy@latest goppy setup-lib .PHONY: lint diff --git a/aesgcm/aesgcm.go b/aesgcm/aesgcm.go index a2ebc1b..ddb4a0e 100644 --- a/aesgcm/aesgcm.go +++ b/aesgcm/aesgcm.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/go.mod b/go.mod index 8067767..a300006 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( go.osspkg.com/ioutils v0.7.4 go.osspkg.com/random v0.5.0 go.osspkg.com/syncing v0.4.3 - golang.org/x/crypto v0.46.0 + golang.org/x/crypto v0.51.0 ) -require golang.org/x/sys v0.39.0 // indirect +require golang.org/x/sys v0.44.0 // indirect diff --git a/go.sum b/go.sum index 0504b20..67d3b8c 100644 --- a/go.sum +++ b/go.sum @@ -2,15 +2,13 @@ go.osspkg.com/casecheck v0.3.0 h1:x15blEszElbrHrEH5H02JIIhGIg/lGZzIt1kQlD3pwM= go.osspkg.com/casecheck v0.3.0/go.mod h1:TRFXDMFJEOtnlp3ET2Hix3osbxwPWhvaiT/HfD3+gBA= go.osspkg.com/errors v0.4.0 h1:E17+WyUzTXEHCTxGm8lOMPOOojzHG1lsOuQtTVGoATQ= go.osspkg.com/errors v0.4.0/go.mod h1:s75ZovPemYtrCtRPVsbQNq9MgMbmLMK1NEypr+uwjXI= -go.osspkg.com/ioutils v0.7.3 h1:QF+Ra0bHoU3MGMGH5PGdV2lRLq1rWPdv/OB+v5UTjkI= -go.osspkg.com/ioutils v0.7.3/go.mod h1:RO/43IM//Wq8RnLvEzivDAuM37mnLW3eWxTCVmkUaY4= go.osspkg.com/ioutils v0.7.4 h1:Z8Y4jYYmLGWcvHZMLjbai+s48GmHxjMuepsxZcjF5X4= go.osspkg.com/ioutils v0.7.4/go.mod h1:pPIsTL1w1+ESrGTeHDCd6cKsujeWvschxGGP5FqrAqc= go.osspkg.com/random v0.5.0 h1:6x2CQ5Vb6PVyuGi6Ao3K6Pr2fzVviBPCEEJC5HQNSmg= go.osspkg.com/random v0.5.0/go.mod h1:lsg3FI87PQdjhVWIVo2GXyPBclipljUxjMlWqRl2cck= go.osspkg.com/syncing v0.4.3 h1:XioXG9zje1LNCsfQhNHkNPCQqPSJZHWTzM8Xig2zvAU= go.osspkg.com/syncing v0.4.3/go.mod h1:/LBmgCAHFW6nQgVDILpEuo6eRCFK1yyFeNbDs4eVNls= -golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU= -golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0= -golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= -golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/crypto v0.51.0 h1:IBPXwPfKxY7cWQZ38ZCIRPI50YLeevDLlLnyC5wRGTI= +golang.org/x/crypto v0.51.0/go.mod h1:8AdwkbraGNABw2kOX6YFPs3WM22XqI4EXEd8g+x7Oc8= +golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ= +golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= diff --git a/hash/hash.go b/hash/hash.go index ade5453..052a1c0 100644 --- a/hash/hash.go +++ b/hash/hash.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pgp/pgp.go b/pgp/pgp.go index 13d8356..af83568 100644 --- a/pgp/pgp.go +++ b/pgp/pgp.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/alg_ecdsa.go b/pki/alg_ecdsa.go index 562b35f..fd9e80c 100644 --- a/pki/alg_ecdsa.go +++ b/pki/alg_ecdsa.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/alg_rsa.go b/pki/alg_rsa.go index 93aa051..a5a82f9 100644 --- a/pki/alg_rsa.go +++ b/pki/alg_rsa.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/alg_type.go b/pki/alg_type.go index 3a47e6d..77b60db 100644 --- a/pki/alg_type.go +++ b/pki/alg_type.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/common.go b/pki/common.go index 7dea36d..a380fde 100644 --- a/pki/common.go +++ b/pki/common.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/config.go b/pki/config.go index 614ee43..9db876e 100644 --- a/pki/config.go +++ b/pki/config.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/encoders.go b/pki/encoders.go index 8dba232..891520a 100644 --- a/pki/encoders.go +++ b/pki/encoders.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/generate_ca.go b/pki/generate_ca.go index 20ae9e8..58ac125 100644 --- a/pki/generate_ca.go +++ b/pki/generate_ca.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/generate_ca_inter.go b/pki/generate_ca_inter.go index 51d2c0c..68b6167 100644 --- a/pki/generate_ca_inter.go +++ b/pki/generate_ca_inter.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/generate_crl.go b/pki/generate_crl.go index e8dedaf..120288d 100644 --- a/pki/generate_crl.go +++ b/pki/generate_crl.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/generate_crt.go b/pki/generate_crt.go index b355579..72414ee 100644 --- a/pki/generate_crt.go +++ b/pki/generate_crt.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/generate_csr.go b/pki/generate_csr.go index 08044d6..2492395 100644 --- a/pki/generate_csr.go +++ b/pki/generate_csr.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/model_certificate.go b/pki/model_certificate.go index 76dfdd0..d39f20f 100644 --- a/pki/model_certificate.go +++ b/pki/model_certificate.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/model_request.go b/pki/model_request.go index 02da597..17a2a00 100644 --- a/pki/model_request.go +++ b/pki/model_request.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/ocsp.go b/pki/ocsp.go index 8be677e..f7116e8 100644 --- a/pki/ocsp.go +++ b/pki/ocsp.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */ diff --git a/pki/utils.go b/pki/utils.go index 69d5555..9a175d2 100644 --- a/pki/utils.go +++ b/pki/utils.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Mikhail Knyazhev . All rights reserved. + * Copyright (c) 2024-2026 Mikhail Knyazhev . All rights reserved. * Use of this source code is governed by a BSD 3-Clause license that can be found in the LICENSE file. */