Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EncodeToMemory (0.3 sec)

  1. internal/config/certs.go

    		}
    		decryptedKey, decErr := x509.DecryptPEMBlock(key, []byte(password))
    		if decErr != nil {
    			return tls.Certificate{}, ErrTLSWrongPassword(decErr)
    		}
    		keyPEMBlock = pem.EncodeToMemory(&pem.Block{Type: key.Type, Bytes: decryptedKey})
    	}
    	cert, err := tls.X509KeyPair(certPEMBlock, keyPEMBlock)
    	if err != nil {
    		return tls.Certificate{}, ErrTLSUnexpectedData(nil).Msg(err.Error())
    	}
    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)
  2. cmd/common-main.go

    					if err != nil {
    						return tls.Certificate{}, fmt.Errorf("Unable to decrypt KES client private key as specified by the shell environment: %v", err)
    					}
    					keyBytes = pem.EncodeToMemory(&pem.Block{Type: privateKeyPEM.Type, Bytes: keyBytes})
    				}
    				certificate, err := tls.X509KeyPair(certBytes, keyBytes)
    				if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  3. api/go1.txt

    pkg encoding/json, type UnsupportedValueError struct, Value reflect.Value
    pkg encoding/pem, func Decode([]uint8) (*Block, []uint8)
    pkg encoding/pem, func Encode(io.Writer, *Block) error
    pkg encoding/pem, func EncodeToMemory(*Block) []uint8
    pkg encoding/pem, type Block struct
    pkg encoding/pem, type Block struct, Bytes []uint8
    pkg encoding/pem, type Block struct, Headers map[string]string
    pkg encoding/pem, type Block struct, Type string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top