Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 181 for x509 (0.05 sec)

  1. pkg/apis/certificates/v1beta1/helpers.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1beta1
    
    import (
    	"crypto/x509"
    	"encoding/pem"
    	"errors"
    )
    
    // ParseCSR decodes a PEM encoded CSR
    func ParseCSR(pemBytes []byte) (*x509.CertificateRequest, error) {
    	// extract PEM from request object
    	block, _ := pem.Decode(pemBytes)
    	if block == nil || block.Type != "CERTIFICATE REQUEST" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 27 10:17:55 UTC 2020
    - 1K bytes
    - Viewed (0)
  2. src/internal/godebugs/table.go

    	{Name: "x509negativeserial", Package: "crypto/x509", Changed: 23, Old: "1"},
    	{Name: "x509seriallength", Package: "crypto/x509", Changed: 23, Old: "1"},
    	{Name: "x509sha1", Package: "crypto/x509"},
    	{Name: "x509usefallbackroots", Package: "crypto/x509"},
    	{Name: "x509usepolicies", Package: "crypto/x509"},
    	{Name: "zipinsecurepath", Package: "archive/zip"},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/crypto/ecdsa/equal_test.go

    	}
    	if !private.Equal(private) {
    		t.Errorf("private key is not equal to itself: %v", private)
    	}
    
    	enc, err := x509.MarshalPKCS8PrivateKey(private)
    	if err != nil {
    		t.Fatal(err)
    	}
    	decoded, err := x509.ParsePKCS8PrivateKey(enc)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !public.Equal(decoded.(crypto.Signer).Public()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 05 18:05:10 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  4. src/crypto/x509/root_darwin.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package x509
    
    import (
    	macOS "crypto/x509/internal/macos"
    	"errors"
    	"fmt"
    )
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	certs := macOS.CFArrayCreateMutable()
    	defer macOS.ReleaseCFArray(certs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. security/pkg/pki/util/verify_cert_test.go

    	}
    
    	keyUsage = &VerifyFields{
    		ExtKeyUsage: []x509.ExtKeyUsage{1, 2},
    		KeyUsage:    2,
    		Host:        "spiffe://cluster.local/ns/default/sa/default",
    	}
    
    	isCA = &VerifyFields{
    		ExtKeyUsage: []x509.ExtKeyUsage{1, 2},
    		KeyUsage:    5,
    		IsCA:        true,
    		Host:        "spiffe://cluster.local/ns/default/sa/default",
    	}
    
    	org = &VerifyFields{
    		ExtKeyUsage: []x509.ExtKeyUsage{1, 2},
    		KeyUsage:    5,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 16 14:56:37 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  6. plugin/pkg/admission/imagepolicy/gencerts.sh

    extendedKeyUsage = clientAuth
    EOF
    
    # Create a certificate authority
    openssl genrsa -out caKey.pem 2048
    openssl req -x509 -new -nodes -key caKey.pem -days 100000 -out caCert.pem -subj "/CN=webhook_imagepolicy_ca"
    
    # Create a second certificate authority
    openssl genrsa -out badCAKey.pem 2048
    openssl req -x509 -new -nodes -key badCAKey.pem -days 100000 -out badCACert.pem -subj "/CN=webhook_imagepolicy_ca"
    
    # Create a server certiticate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 10 14:59:09 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  7. security/pkg/pki/testdata/multilevelpki/certs.sh

    US
    California
    Sunnyvale
    Istio
    Test
    Root CA
    ******@****.***
    
    
    EOF
    openssl x509 -req -days 3650 -in root-cert.csr -sha256 -signkey root-key.pem -out root-cert.pem
    
    # Intermediate CA
    #openssl genrsa -out int-key.pem 4096
    openssl req -new -key int-key.pem -out int-cert.csr -config int-cert.cfg -batch -sha256
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 14 20:15:07 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  8. pkg/test/csrctrl/signer/signer.go

    // limitations under the License.
    
    // Package signer implements a CA signer that uses keys stored on local disk.
    package signer
    
    import (
    	"bytes"
    	"crypto/x509"
    	"encoding/pem"
    	"fmt"
    	"time"
    
    	capi "k8s.io/api/certificates/v1"
    
    	"istio.io/istio/pkg/test/csrctrl/authority"
    	"istio.io/istio/security/pkg/pki/util"
    )
    
    type Signer struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/renewal/readwriter.go

    type certificateReadWriter interface {
    	//Exists return true if the certificate exists
    	Exists() (bool, error)
    
    	// Read a certificate stored/embedded in a file
    	Read() (*x509.Certificate, error)
    
    	// Write (update) a certificate stored/embedded in a file
    	Write(*x509.Certificate, crypto.Signer) error
    }
    
    // pkiCertificateReadWriter defines a certificateReadWriter for certificate files
    // in the K8s pki managed by kubeadm
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 01 03:09:53 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh

    DNS.1 = webhook-test.default.svc
    EOF
    
    # Create a certificate authority
    openssl genrsa -out CAKey.pem 2048
    openssl req -x509 -new -nodes -key CAKey.pem -days 100000 -out CACert.pem -subj "/CN=${CN_BASE}_ca"
    
    # Create a second certificate authority
    openssl genrsa -out BadCAKey.pem 2048
    openssl req -x509 -new -nodes -key BadCAKey.pem -days 100000 -out BadCACert.pem -subj "/CN=${CN_BASE}_ca"
    
    # Create a server certiticate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 24 05:55:09 UTC 2019
    - 3.5K bytes
    - Viewed (0)
Back to top