Skip to content

Commit 475913e

Browse files
author
pranav.goyal
committed
use sensitive.Sensitive for password handling
1 parent 92ff174 commit 475913e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/tls/tls_web.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ import (
2323
"github.com/ibm-messaging/mq-container/internal/mqtemplate"
2424
"github.com/ibm-messaging/mq-container/internal/pathutils"
2525
"github.com/ibm-messaging/mq-container/internal/securityutility"
26+
"github.com/ibm-messaging/mq-container/internal/sensitive"
2627
"github.com/ibm-messaging/mq-container/pkg/logger"
2728
)
2829

2930
// webKeystoreDefault is the name of the default web server Keystore
3031
const webKeystoreDefault = "default.p12"
3132

3233
// ConfigureWebTLS configures TLS for the web server
33-
func ConfigureWebTLS(keyLabel string, log *logger.Logger, password string) error {
34+
func ConfigureWebTLS(keyLabel string, log *logger.Logger, password *sensitive.Sensitive) error {
3435

3536
// Return immediately if we have no certificate to use as identity
3637
if keyLabel == "" && os.Getenv("MQ_GENERATE_CERTIFICATE_HOSTNAME") == "" {

0 commit comments

Comments
 (0)