diff --git a/commons/commands.go b/commons/commands.go index 9b4e3ff..1c1423d 100644 --- a/commons/commands.go +++ b/commons/commands.go @@ -418,6 +418,7 @@ func setConfigToICommandsEnvMgr(envManager *irodsclient_icommands.ICommandsEnvir envManager.Environment.ClientServerNegotiation = config.ClientServerNegotiation envManager.Environment.ClientServerPolicy = config.ClientServerPolicy envManager.Environment.SSLCACertificateFile = config.SSLCACertificateFile + envManager.Environment.SSLCACertificatePath = config.SSLCACertificatePath envManager.Environment.EncryptionKeySize = config.EncryptionKeySize envManager.Environment.EncryptionAlgorithm = config.EncryptionAlgorithm envManager.Environment.EncryptionSaltSize = config.EncryptionSaltSize @@ -471,6 +472,10 @@ func overwriteConfigToICommandsEnvMgr(envManager *irodsclient_icommands.ICommand envManager.Environment.SSLCACertificateFile = config.SSLCACertificateFile } + if len(config.SSLCACertificatePath) > 0 { + envManager.Environment.SSLCACertificatePath = config.SSLCACertificatePath + } + if config.EncryptionKeySize > 0 { envManager.Environment.EncryptionKeySize = config.EncryptionKeySize } @@ -504,6 +509,7 @@ func setICommandsEnvMgrToConfig(config *Config, envManager *irodsclient_icommand config.ClientServerNegotiation = envManager.Environment.ClientServerNegotiation config.ClientServerPolicy = envManager.Environment.ClientServerPolicy config.SSLCACertificateFile = envManager.Environment.SSLCACertificateFile + config.SSLCACertificatePath = envManager.Environment.SSLCACertificatePath config.EncryptionKeySize = envManager.Environment.EncryptionKeySize config.EncryptionAlgorithm = envManager.Environment.EncryptionAlgorithm config.EncryptionSaltSize = envManager.Environment.EncryptionSaltSize @@ -777,6 +783,10 @@ func PrintEnvironment() error { "iRODS SSL CA Certification File", envMgr.Environment.SSLCACertificateFile, }, + { + "iRODS SSL CA Certification Path", + envMgr.Environment.SSLCACertificatePath, + }, { "iRODS SSL Encryption Key Size", envMgr.Environment.EncryptionKeySize, diff --git a/commons/config.go b/commons/config.go index 9072a2a..3e8ca52 100644 --- a/commons/config.go +++ b/commons/config.go @@ -34,6 +34,7 @@ type Config struct { ClientServerNegotiation string `yaml:"irods_client_server_negotiation,omitempty" envconfig:"IRODS_CLIENT_SERVER_NEGOTIATION"` ClientServerPolicy string `yaml:"irods_client_server_policy,omitempty" envconfig:"IRODS_CLIENT_SERVER_POLICY"` SSLCACertificateFile string `yaml:"irods_ssl_ca_certificate_file,omitempty" envconfig:"IRODS_SSL_CA_CERTIFICATE_FILE"` + SSLCACertificatePath string `yaml:"irods_ssl_ca_certificate_path,omitempty" envconfig:"IRODS_SSL_CA_CERTIFICATE_PATH"` EncryptionKeySize int `yaml:"irods_encryption_key_size,omitempty" envconfig:"IRODS_ENCRYPTION_KEY_SIZE"` EncryptionAlgorithm string `yaml:"irods_encryption_algorithm,omitempty" envconfig:"IRODS_ENCRYPTION_ALGORITHM"` EncryptionSaltSize int `yaml:"irods_encryption_salt_size,omitempty" envconfig:"IRODS_ENCRYPTION_SALT_SIZE"` @@ -47,6 +48,7 @@ func GetDefaultConfig() *Config { ClientServerNegotiation: "", ClientServerPolicy: ClientServerPolicyDefault, SSLCACertificateFile: "", + SSLCACertificatePath: "", EncryptionKeySize: EncryptionKeySizeDefault, EncryptionAlgorithm: EncryptionAlgorithmDefault, EncryptionSaltSize: SaltSizeDefault,