Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleCertificate_Verify (0.23 sec)

  1. src/crypto/x509/example_test.go

    // license that can be found in the LICENSE file.
    
    package x509_test
    
    import (
    	"crypto/dsa"
    	"crypto/ecdsa"
    	"crypto/ed25519"
    	"crypto/rsa"
    	"crypto/x509"
    	"encoding/pem"
    	"fmt"
    )
    
    func ExampleCertificate_Verify() {
    	// Verifying with a custom list of root certificates.
    
    	const rootPEM = `
    -----BEGIN CERTIFICATE-----
    MIIEBDCCAuygAwIBAgIDAjppMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 29 16:52:01 UTC 2019
    - 5.3K bytes
    - Viewed (0)
Back to top