- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for GenCSR (1.44 sec)
-
security/pkg/pki/util/generate_csr_test.go
csrOptions CertOptions err error }{ "GenCSR with RSA": { csrOptions: CertOptions{ Host: "test_ca.com", Org: "MyOrg", RSAKeySize: 2048, }, }, "GenCSR with EC": { csrOptions: CertOptions{ Host: "test_ca.com", Org: "MyOrg", ECSigAlg: EcdsaSigAlg, }, }, "GenCSR with EC errors due to invalid signature algorithm": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 25 09:40:13 UTC 2022 - 5.5K bytes - Viewed (0) -
security/pkg/pki/util/generate_csr.go
"istio.io/istio/pkg/log" ) // minimumRsaKeySize is the minimum RSA key size to generate certificates // to ensure proper security const minimumRsaKeySize = 2048 // GenCSR generates a X.509 certificate sign request and private key with the given options. func GenCSR(options CertOptions) ([]byte, []byte, error) { var priv any var err error if options.ECSigAlg != "" { switch options.ECSigAlg { case EcdsaSigAlg:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 4.1K bytes - Viewed (0) -
security/tools/generate_csr/main.go
} err = os.WriteFile(*outPriv, privPem, 0o600) if err != nil { log.Fatalf("Could not write output private key: %s.", err) } } func main() { flag.Parse() csrPem, privPem, err := util.GenCSR(util.CertOptions{ Host: *host, Org: *org, RSAKeySize: *keySize, ECSigAlg: util.SupportedECSignatureAlgorithms(*ec), ECCCurve: util.SupportedEllipticCurves(*curve), }) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/fuzz/security_fuzzer.go
) func FuzzGenCSR(data []byte) int { f := fuzz.NewConsumer(data) certOptions := util.CertOptions{} err := f.GenerateStruct(&certOptions) if err != nil { return 0 } _, _, _ = util.GenCSR(certOptions) return 1 } func fuzzedCertChain(f *fuzz.ConsumeFuzzer) ([][]*x509.Certificate, error) { certChain := [][]*x509.Certificate{} withPkixExtension, err := f.GetBool() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/test/framework/components/istio/ca.go
options := pkiutil.CertOptions{ Host: san, RSAKeySize: 2048, } // Generate the cert/key, send CSR to CA. csrPEM, keyPEM, err := pkiutil.GenCSR(options) if err != nil { return Cert{}, err } a, err := i.InternalDiscoveryAddressFor(c) if err != nil { return Cert{}, err } client, err := newCitadelClient(a, []byte(rootCert)) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 4.5K bytes - Viewed (0) -
security/pkg/pki/ra/k8s_ra_test.go
options := pkiutil.CertOptions{ Host: testCsrHostName, RSAKeySize: 2048, PKCS8Key: false, ECSigAlg: pkiutil.SupportedECSignatureAlgorithms("ECDSA"), } csrPEM, _, err := pkiutil.GenCSR(options) if err != nil { t.Fatalf("Error creating Mock CA client: %v", err) return nil } return csrPEM } func initFakeKubeClient(t test.Failer, certificate []byte) kube.CLIClient {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 00:44:54 UTC 2023 - 9.7K bytes - Viewed (0) -
security/pkg/k8s/chiron/utils.go
) ([]byte, []byte, []byte, error) { // 1. Generate a CSR options := util.CertOptions{ Host: dnsName, RSAKeySize: keySize, IsDualUse: false, PKCS8Key: false, } csrPEM, keyPEM, err := util.GenCSR(options) if err != nil { log.Errorf("CSR generation error (%v)", err) return nil, nil, nil, err } usages := []cert.KeyUsage{ cert.UsageDigitalSignature, cert.UsageKeyEncipherment,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 18:11:22 UTC 2024 - 9.2K bytes - Viewed (0)