ssl

package
v0.0.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePemFiles added in v0.0.18

func DecodePemFiles(certInput []byte) tls.Certificate

func ParseCertificateChain added in v0.0.18

func ParseCertificateChain(certLocation string) (*x509.Certificate, *x509.CertPool, *x509.Certificate, error)

func PromptAddRootCAToTrustStore added in v0.0.18

func PromptAddRootCAToTrustStore() (bool, error)

func PromptAndVerifySSL added in v0.0.18

func PromptAndVerifySSL(osType config.OperatingSystem) (string, string, error)

func PromptMisMatchedHostName added in v0.0.18

func PromptMisMatchedHostName() (bool, error)

func PromptRootCAMissing added in v0.0.22

func PromptRootCAMissing() (bool, error)

func PromptSSL

func PromptSSL() (bool, error)

PromptSSL Prompt asking users if they wish to use SSL

func PromptSSLFilePath

func PromptSSLFilePath() (string, error)

PromptSSLFilePath Prompt asking users for a filepath to their SSL cert

func PromptSSLKeyFilePath

func PromptSSLKeyFilePath() (string, error)

PromptSSLKeyFilePath Prompt asking users for a filepath to their SSL cert key

func PromptServerURL added in v0.0.24

func PromptServerURL() (string, error)

PromptServerURL asks users for the server URL

func TrustRootCertificate added in v0.0.22

func TrustRootCertificate(rootCA *x509.Certificate, osType config.OperatingSystem) error

func VerifySSLCertAndKeyMD5Match added in v0.0.18

func VerifySSLCertAndKeyMD5Match(certLocation string, keyLocation string) error

VerifySSLCertAndKeyMD5Match Verify the SSL cert and key are valid

func VerifySSLHostMatch added in v0.0.18

func VerifySSLHostMatch(serverCert *x509.Certificate) (bool, error)

func VerifyTrustedCertificate added in v0.0.18

func VerifyTrustedCertificate(serverCert *x509.Certificate, intermediateCA *x509.CertPool) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL