Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SubjectKeyId (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    			sb.WriteRune(':')
    		}
    	}
    	return sb.String()
    }
    
    func certificateIdentifier(c *x509.Certificate) string {
    	return fmt.Sprintf(
    		"SN=%d, SKID=%s, AKID=%s",
    		c.SerialNumber,
    		columnSeparatedHex(c.SubjectKeyId),
    		columnSeparatedHex(c.AuthorityKeyId),
    	)
    }
    
    // VerifyOptionFunc is function which provides a shallow copy of the VerifyOptions to the authenticator.  This allows
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		},
    		{
    			name: "empty SKID",
    			cert: func() *x509.Certificate {
    				c := getCert(t, clientCNCert)
    				c.SubjectKeyId = nil
    				return c
    			}(),
    			expectedIdentifier: "SN=1, SKID=, AKID=D3:07:CD:72:E6:BE:0A:5A:D8:E9:60:20:AF:C2:F2:36:7E:33:62:0B",
    		},
    		{
    			name: "empty AKID",
    			cert: func() *x509.Certificate {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/crypto/x509/parser.go

    				}
    				val := cryptobyte.String(e.Value)
    				var skid cryptobyte.String
    				if !val.ReadASN1(&skid, cryptobyte_asn1.OCTET_STRING) {
    					return errors.New("x509: invalid subject key identifier")
    				}
    				out.SubjectKeyId = skid
    			case 32:
    				out.Policies, err = parseCertificatePoliciesExtension(e.Value)
    				if err != nil {
    					return err
    				}
    				out.PolicyIdentifiers = make([]asn1.ObjectIdentifier, 0, len(out.Policies))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top