Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for certFiles (0.29 sec)

  1. src/crypto/x509/root_unix_test.go

    	origFile, origDir := os.Getenv(certFileEnv), os.Getenv(certDirEnv)
    	origCertFiles := certFiles[:]
    
    	// To prevent any other certs from being loaded in
    	// through "SSL_CERT_FILE" or from known "certFiles",
    	// clear them all, and they'll be reverting on defer.
    	certFiles = certFiles[:0]
    	os.Setenv(certFileEnv, "")
    
    	defer func() {
    		certFiles = origCertFiles[:]
    		os.Setenv(certDirEnv, origDir)
    		os.Setenv(certFileEnv, origFile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. src/crypto/x509/root_plan9.go

    	"os"
    )
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/sys/lib/tls/ca.pem",
    }
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	return nil, nil
    }
    
    func loadSystemRoots() (*CertPool, error) {
    	roots := NewCertPool()
    	var bestErr error
    	for _, file := range certFiles {
    		data, err := os.ReadFile(file)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 828 bytes
    - Viewed (0)
  3. src/crypto/x509/root_aix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package x509
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/var/ssl/certs/ca-bundle.crt",
    }
    
    // Possible directories with certificate files; all will be read.
    var certDirectories = []string{
    	"/var/ssl/certs",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 02 22:53:18 UTC 2021
    - 410 bytes
    - Viewed (0)
  4. src/crypto/x509/root_wasm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build wasm
    
    package x509
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{}
    
    // Possible directories with certificate files; all will be read.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 373 bytes
    - Viewed (0)
  5. src/crypto/x509/root_solaris.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package x509
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/etc/certs/ca-certificates.crt",     // Solaris 11.2+
    	"/etc/ssl/certs/ca-certificates.crt", // Joyent SmartOS
    	"/etc/ssl/cacert.pem",                // OmniOS
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 02 22:53:18 UTC 2021
    - 538 bytes
    - Viewed (0)
  6. src/crypto/x509/root_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package x509
    
    import "internal/goos"
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/etc/ssl/certs/ca-certificates.crt",                // Debian/Ubuntu/Gentoo etc.
    	"/etc/pki/tls/certs/ca-bundle.crt",                  // Fedora/RHEL 6
    	"/etc/ssl/ca-bundle.pem",                            // OpenSUSE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:55:35 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. src/crypto/x509/root_bsd.go

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd || netbsd || openbsd
    
    package x509
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/usr/local/etc/ssl/cert.pem",            // FreeBSD
    	"/etc/ssl/cert.pem",                      // OpenBSD
    	"/usr/local/share/certs/ca-root-nss.crt", // DragonFly
    	"/etc/openssl/certs/ca-certificates.crt", // NetBSD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 02 22:53:18 UTC 2021
    - 748 bytes
    - Viewed (0)
  8. src/crypto/x509/root_unix.go

    )
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	return nil, nil
    }
    
    func loadSystemRoots() (*CertPool, error) {
    	roots := NewCertPool()
    
    	files := certFiles
    	if f := os.Getenv(certFileEnv); f != "" {
    		files = []string{f}
    	}
    
    	var firstErr error
    	for _, file := range files {
    		data, err := os.ReadFile(file)
    		if err == nil {
    			roots.AppendCertsFromPEM(data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. pkg/security/security.go

    func GetOSRootFilePath() string {
    	// Get and store the OS CA certificate path for Linux systems
    	// Source of CA File Paths: https://golang.org/src/crypto/x509/root_linux.go
    	certFiles := []string{
    		"/etc/ssl/certs/ca-certificates.crt",                // Debian/Ubuntu/Gentoo etc.
    		"/etc/pki/tls/certs/ca-bundle.crt",                  // Fedora/RHEL 6
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  10. internal/config/certs.go

    	}
    
    	return x509Certs, nil
    }
    
    // LoadX509KeyPair - load an X509 key pair (private key , certificate)
    // from the provided paths. The private key may be encrypted and is
    // decrypted using the ENV_VAR: MINIO_CERT_PASSWD.
    func LoadX509KeyPair(certFile, keyFile string) (tls.Certificate, error) {
    	certPEMBlock, err := os.ReadFile(certFile)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top