Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ParseCertificate (0.22 sec)

  1. misc/ios/detect.go

    		out := output(parseMobileProvision(mp))
    		_, err = f.Write(out)
    		check(err)
    		check(f.Close())
    
    		cert, err := plistExtract(fname, "DeveloperCertificates:0")
    		check(err)
    		pcert, err := x509.ParseCertificate(cert)
    		check(err)
    		fmt.Printf("export GOIOS_DEV_ID=\"%s\"\n", pcert.Subject.CommonName)
    
    		appID, err := plistExtract(fname, "Entitlements:application-identifier")
    		check(err)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. internal/config/certs.go

    			return nil, ErrTLSUnexpectedData(nil).Msg("Could not read PEM block from file %s", certFile)
    		}
    
    		var x509Cert *x509.Certificate
    		if x509Cert, err = x509.ParseCertificate(pemBlock.Bytes); err != nil {
    			return nil, ErrTLSUnexpectedData(nil).Msg("Failed to parse `%s`: %s", certFile, err.Error())
    		}
    
    		x509Certs = append(x509Certs, x509Cert)
    	}
    
    	if len(x509Certs) == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/sds/util.go

    }
    
    func secretMetaFromCert(rawCert []byte) (SecretMeta, error) {
    	block, _ := pem.Decode(rawCert)
    	if block == nil {
    		return SecretMeta{}, fmt.Errorf("failed to parse certificate PEM")
    	}
    	cert, err := x509.ParseCertificate(block.Bytes)
    	if err != nil {
    		return SecretMeta{}, err
    	}
    	var certType string
    	if cert.IsCA {
    		certType = "CA"
    	} else {
    		certType = "Cert Chain"
    	}
    
    	today := time.Now()
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg crypto/x509, func MarshalPKIXPublicKey(interface{}) ([]uint8, error)
    pkg crypto/x509, func NewCertPool() *CertPool
    pkg crypto/x509, func ParseCRL([]uint8) (*pkix.CertificateList, error)
    pkg crypto/x509, func ParseCertificate([]uint8) (*Certificate, error)
    pkg crypto/x509, func ParseCertificates([]uint8) ([]*Certificate, error)
    pkg crypto/x509, func ParseDERCRL([]uint8) (*pkix.CertificateList, error)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top