- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 181 for x509 (0.15 sec)
-
pkg/webhooks/util/util.go
return errors.New("could not decode pem") } if block.Type != "CERTIFICATE" { return fmt.Errorf("cert contains wrong pem type: %q", block.Type) } if _, err := x509.ParseCertificate(block.Bytes); err != nil { return fmt.Errorf("cert contains invalid x509 certificate: %v", err) } return nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 17:33:33 UTC 2022 - 1.5K bytes - Viewed (0) -
src/crypto/x509/pem_decrypt.go
dek, ok := b.Headers["DEK-Info"] if !ok { return nil, errors.New("x509: no DEK-Info header in block") } mode, hexIV, ok := strings.Cut(dek, ",") if !ok { return nil, errors.New("x509: malformed DEK-Info header") } ciph := cipherByName(mode) if ciph == nil { return nil, errors.New("x509: unknown encryption mode") } iv, err := hex.DecodeString(hexIV) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 7.2K bytes - Viewed (0) -
pkg/apis/certificates/v1/helpers.go
See the License for the specific language governing permissions and limitations under the License. */ package v1 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: Fri Jun 05 04:47:24 UTC 2020 - 1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certlist_test.go
daughterCert, _ := parseCertAndKey(filepath.Join(dir, "test-daughter"), t) pool := x509.NewCertPool() pool.AddCert(caCert) _, err = daughterCert.Verify(x509.VerifyOptions{ DNSName: "test-domain.space", Roots: pool, KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, }) if err != nil { t.Errorf("couldn't verify daughter cert: %v", err) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 8.8K bytes - Viewed (0) -
cmd/kubeadm/test/kubeconfig/util.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package kubeconfig import ( "crypto/x509" "encoding/pem" "testing" "time" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" certstestutil "k8s.io/kubernetes/cmd/kubeadm/app/util/certs" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 4.9K bytes - Viewed (0) -
src/crypto/x509/example_test.go
// default root set of the current operating system. roots := x509.NewCertPool() ok := roots.AppendCertsFromPEM([]byte(rootPEM)) if !ok { panic("failed to parse root certificate") } block, _ := pem.Decode([]byte(certPEM)) if block == nil { panic("failed to parse certificate PEM") } cert, err := x509.ParseCertificate(block.Bytes) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 29 16:52:01 UTC 2019 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go
// defaultVerifyOptions returns VerifyOptions that use the system root certificates, current time, // and requires certificates to be valid for client auth (x509.ExtKeyUsageClientAuth) func defaultVerifyOptions() x509.VerifyOptions { return x509.VerifyOptions{ KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.4K bytes - Viewed (0) -
api/go1.15.txt
pkg crypto/x509, func CreateRevocationList(io.Reader, *RevocationList, *Certificate, crypto.Signer) ([]uint8, error) pkg crypto/x509, type RevocationList struct pkg crypto/x509, type RevocationList struct, ExtraExtensions []pkix.Extension pkg crypto/x509, type RevocationList struct, NextUpdate time.Time pkg crypto/x509, type RevocationList struct, Number *big.Int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 17 02:15:01 UTC 2020 - 7.6K bytes - Viewed (0) -
internal/config/certsinfo.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package config 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} )
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 3.1K bytes - Viewed (0) -
src/crypto/rsa/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 - 1.3K bytes - Viewed (0)