- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for generateCert (0.3 sec)
-
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) -
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) -
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) -
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)