Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for generateCert (0.38 sec)

  1. pkg/test/cert/cert.go

    func GenerateCSR(confFile, keyFile, csrFile string) error {
    	return openssl("req", "-new",
    		"-config", confFile,
    		"-key", keyFile,
    		"-out", csrFile)
    }
    
    // GenerateCert and writes output to certFile.
    func GenerateCert(confFile, csrFile, keyFile, certFile string) error {
    	return openssl("x509", "-req",
    		"-days", "100000",
    		"-signkey", keyFile,
    		"-extensions", "req_ext",
    		"-extfile", confFile,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 22 14:18:21 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. pkg/test/cert/ca/root.go

    		return Root{}, err
    	}
    
    	// Create the root CSR
    	if err := cert.GenerateCSR(root.ConfFile, root.KeyFile, root.CSRFile); err != nil {
    		return Root{}, err
    	}
    
    	// Create the root cert
    	if err := cert.GenerateCert(root.ConfFile, root.CSRFile, root.KeyFile, root.CertFile); err != nil {
    		return Root{}, err
    	}
    	return root, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. src/crypto/tls/generate_cert.go

    cuiweixie <******@****.***> 1659534034 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:22:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. src/net/http/internal/testcert/testcert.go

    package testcert
    
    import "strings"
    
    // LocalhostCert is a PEM-encoded TLS cert with SAN IPs
    // "127.0.0.1" and "[::1]", expiring at Jan 29 16:00:00 2084 GMT.
    // generated from src/crypto/tls:
    // go run generate_cert.go  --rsa-bits 2048 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h
    var LocalhostCert = []byte(`-----BEGIN CERTIFICATE-----
    MIIDOTCCAiGgAwIBAgIQSRJrEpBGFc7tNb1fb5pKFzANBgkqhkiG9w0BAQsFADAS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jan 08 00:24:25 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial_test.go

    			if tc.ExpectError != "" {
    				t.Errorf("%s: expected error %q, got none", k, tc.ExpectError)
    			}
    		}()
    	}
    
    }
    
    // localhostCert was generated from crypto/tls/generate_cert.go with the following command:
    //
    //	go run generate_cert.go  --rsa-bits 2048 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h
    var localhostCert = []byte(`-----BEGIN CERTIFICATE-----
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. tests/integration/security/ca_custom_root/main_test.go

    	tmpdir, err := ctx.CreateTmpDirectory("ca-custom-root")
    	if err != nil {
    		return err
    	}
    
    	// Create testing certs using runtime namespace.
    	err = generateCerts(tmpdir, customNs.Get().Name())
    	if err != nil {
    		return err
    	}
    	rootCert, err := cert.LoadCert(path.Join(tmpdir, "root-cert.pem"))
    	if err != nil {
    		return err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. security/pkg/pki/util/generate_csr.go

    // limitations under the License.
    
    // Provides utility methods to generate X.509 certificates with different
    // options. This implementation is Largely inspired from
    // https://golang.org/src/crypto/tls/generate_cert.go.
    
    package util
    
    import (
    	"crypto"
    	"crypto/ecdsa"
    	"crypto/elliptic"
    	"crypto/rand"
    	"crypto/rsa"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"errors"
    	"fmt"
    	"os"
    	"strings"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top