Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for PKIX (0.04 sec)

  1. src/crypto/x509/pkix/pkix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package pkix contains shared, low level structures used for ASN.1 parsing
    // and serialization of X.509 certificates, CRL and OCSP.
    package pkix
    
    import (
    	"encoding/asn1"
    	"encoding/hex"
    	"fmt"
    	"math/big"
    	"time"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. security/pkg/pki/util/san_test.go

    	}
    }
    
    func TestExtractIDsFromSANWithError(t *testing.T) {
    	testCases := map[string]struct {
    		ext *pkix.Extension
    	}{
    		"Wrong OID": {
    			ext: &pkix.Extension{
    				Id: asn1.ObjectIdentifier{1, 2, 3},
    			},
    		},
    		"Wrong encoding": {
    			ext: &pkix.Extension{
    				Id:    oidSubjectAlternativeName,
    				Value: []byte("bad value"),
    			},
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/crypto/x509/x509.go

    func parseRawAttributes(rawAttributes []asn1.RawValue) []pkix.AttributeTypeAndValueSET {
    	var attributes []pkix.AttributeTypeAndValueSET
    	for _, rawAttr := range rawAttributes {
    		var attr pkix.AttributeTypeAndValueSET
    		rest, err := asn1.Unmarshal(rawAttr.FullBytes, &attr)
    		// Ignore attributes that don't parse into pkix.AttributeTypeAndValueSET
    		// (i.e.: challengePassword or unstructuredName).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  4. src/crypto/x509/pkcs8.go

    import (
    	"crypto/ecdh"
    	"crypto/ecdsa"
    	"crypto/ed25519"
    	"crypto/rsa"
    	"crypto/x509/pkix"
    	"encoding/asn1"
    	"errors"
    	"fmt"
    )
    
    // pkcs8 reflects an ASN.1, PKCS #8 PrivateKey. See
    // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-8/pkcs-8v1_2.asn
    // and RFC 5208.
    type pkcs8 struct {
    	Version    int
    	Algo       pkix.AlgorithmIdentifier
    	PrivateKey []byte
    	// optional attributes omitted.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. security/pkg/pki/util/san.go

    	}
    
    	return ids, nil
    }
    
    // ExtractSANExtension extracts the "Subject Alternative Name" externsion from
    // the given PKIX extension set.
    func ExtractSANExtension(exts []pkix.Extension) *pkix.Extension {
    	for _, ext := range exts {
    		if ext.Id.Equal(oidSubjectAlternativeName) {
    			// We don't need to examine other extensions anymore since a certificate
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 14 06:50:22 UTC 2022
    - 6K bytes
    - Viewed (0)
  6. src/crypto/x509/x509_test.go

    				pkix.RelativeDistinguishedNameSET{
    					pkix.AttributeTypeAndValue{Type: oidCountry, Value: "US"},
    				},
    				pkix.RelativeDistinguishedNameSET{
    					pkix.AttributeTypeAndValue{Type: oidOrganization, Value: "Widget Inc."},
    				},
    				pkix.RelativeDistinguishedNameSET{
    					pkix.AttributeTypeAndValue{Type: oidOrganizationalUnit, Value: "Sales"},
    					pkix.AttributeTypeAndValue{Type: oidCommonName, Value: "J. Smith"},
    				},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  7. security/pkg/pki/util/generate_csr.go

    // 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"
    
    	"istio.io/istio/pkg/log"
    )
    
    // minimumRsaKeySize is the minimum RSA key size to generate certificates
    // to ensure proper security
    const minimumRsaKeySize = 2048
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. tests/fuzz/security_fuzzer.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package fuzz
    
    import (
    	"context"
    	"crypto/tls"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"net"
    
    	fuzz "github.com/AdaLogics/go-fuzz-headers"
    	"google.golang.org/grpc/credentials"
    	"google.golang.org/grpc/peer"
    
    	pb "istio.io/api/security/v1alpha1"
    	"istio.io/istio/pkg/security"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/crypto/x509/x509_test_import.go

    	"crypto/rand"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/pem"
    	"math/big"
    	"strings"
    	"time"
    )
    
    func main() {
    	block, _ := pem.Decode([]byte(pemPrivateKey))
    	rsaPriv, err := x509.ParsePKCS1PrivateKey(block.Bytes)
    	if err != nil {
    		panic("Failed to parse private key: " + err.Error())
    	}
    
    	template := x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject: pkix.Name{
    			CommonName:   "test",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  10. internal/config/certsinfo.go

    import (
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"fmt"
    	"net/http"
    	"strings"
    
    	color "github.com/minio/minio/internal/color"
    )
    
    // Extra ASN1 OIDs that we may need to handle
    var (
    	oidEmailAddress = []int{1, 2, 840, 113549, 1, 9, 1}
    )
    
    // printName prints the fields of a distinguished name, which include such
    // things as its common name and locality.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
Back to top