Documentation
¶
Index ¶
- func CreateCert(csrPath, caCertPath, caKeyPath string, expiryDays int) (string, error)
- func CreateSigningCert(privateKey, cacert, cakey, csrData, csrPemData string, expiryDays int) (string, error)
- func EncryptContract(password, section string) (string, error)
- func EncryptFinalStr(encryptedPassword, encryptedContract string) string
- func EncryptPassword(password, cert string) (string, error)
- func EncryptString(password, section string) (string, error)
- func GenFinalSignedContract(workload, env, workloadEnvSig string) (string, error)
- func GeneratePublicKey(privateKey string) (string, error)
- func OpensslCheck() error
- func RandomPasswordGenerator() (string, error)
- func SignContract(encryptedWorkload, encryptedEnv, privateKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCert ¶
CreateCert - function to create signing certificate
func CreateSigningCert ¶
func CreateSigningCert(privateKey, cacert, cakey, csrData, csrPemData string, expiryDays int) (string, error)
CreateSigningCert - function to generate Signing Certificate
func EncryptContract ¶
EncryptContract - function to encrypt contract
func EncryptFinalStr ¶
EncryptFinalStr - function to get final encrypted section
func EncryptPassword ¶
EncryptPassword - function to encrypt password
func EncryptString ¶
EncryptString - function to encrypt string
func GenFinalSignedContract ¶
GenFinalSignedContract - function to generate the final contract
func GeneratePublicKey ¶
GeneratePublicKey - function to generate public key from private key
func RandomPasswordGenerator ¶
RandomPasswordGenerator - function to generate random password
func SignContract ¶
SignContract - function to sign encrypted contract
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.