Documentation ¶
Overview ¶
Package tlsutils contains the utility functions related to tls communication of the adapter
Index ¶
- func GetKeyLocations() (string, string, string)
- func GetServerCertificate(tlsCertificate string, tlsCertificateKey string) (tls.Certificate, error)
- func GetTrustedCertPool(truststoreLocation string) *x509.CertPool
- func InvokeControlPlane(req *http.Request, skipSSL bool) (*http.Response, error)
- func IsPublicCertificate(certContent []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyLocations ¶
GetKeyLocations function returns the public key path and private key path
func GetServerCertificate ¶
func GetServerCertificate(tlsCertificate string, tlsCertificateKey string) (tls.Certificate, error)
GetServerCertificate returns the certificate (used for the restAPI server and xds server) created based on configuration values. Move to pkg. remove config and read from a file path
func GetTrustedCertPool ¶
GetTrustedCertPool returns the trusted certificate (used for the restAPI server and xds server) created based on the provided directory/file path. Move to pkg
func InvokeControlPlane ¶
InvokeControlPlane sends request to the control plane and returns the response
func IsPublicCertificate ¶
IsPublicCertificate checks if the file content represents valid public certificate in PEM format. Move to pkg
Types ¶
This section is empty.