From 0a9c745d962fe29db5d6feafc432218a6ccdd6cf Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Thu, 30 May 2019 09:16:06 +0100 Subject: [PATCH] PR comments --- cmd/runmqserver/main.go | 2 +- cmd/runmqserver/tls.go | 8 ++++---- docs/usage.md | 2 +- internal/keystore/keystore.go | 2 +- internal/tls/tls.go | 12 ++++++------ 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cmd/runmqserver/main.go b/cmd/runmqserver/main.go index a001d32..888c383 100644 --- a/cmd/runmqserver/main.go +++ b/cmd/runmqserver/main.go @@ -148,7 +148,7 @@ func doMain() error { // Print out versioning information logVersionInfo() - keylabel, cmsDB, p12Trust, _, err := tls.ConfigureTLSKeystores(keyDir, trustDir, keystoreDir) + keylabel, cmsDB, p12Trust, _, err := tls.ConfigureTLSKeystores(keyDir, trustDir, keyStoreDir) if err != nil { logTermination(err) return err diff --git a/cmd/runmqserver/tls.go b/cmd/runmqserver/tls.go index f88aff1..cb09e2e 100644 --- a/cmd/runmqserver/tls.go +++ b/cmd/runmqserver/tls.go @@ -27,7 +27,7 @@ import ( ) // Location to store the keystores -const keystoreDir = "/run/runmqserver/tls/" +const keyStoreDir = "/run/runmqserver/tls/" // KeyDir is the location of the certificate keys to import const keyDir = "/etc/mqm/pki/keys" @@ -124,10 +124,10 @@ func configureTLS(certLabel string, cmsKeystore tls.KeyStoreData, devmode bool) func configureSSOTLS(p12TrustStore tls.KeyStoreData) (string, error) { // TODO find way to supply this // Override the webstore variables to hard coded defaults - webkeyStoreName := tls.IntegrationDefaultLabel + ".p12" + webKeyStoreName := tls.IntegrationDefaultLabel + ".p12" // Check keystore exists - ks := filepath.Join(keystoreDir, webkeyStoreName) + ks := filepath.Join(keyStoreDir, webKeyStoreName) _, err := os.Stat(ks) if err != nil { return "", fmt.Errorf("Failed to find existing keystore %s: %v", ks, err) @@ -145,5 +145,5 @@ func configureSSOTLS(p12TrustStore tls.KeyStoreData) (string, error) { return "", err } - return webkeyStoreName, nil + return webKeyStoreName, nil } diff --git a/docs/usage.md b/docs/usage.md index b10e49e..d848937 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -99,7 +99,7 @@ Using this technique, you can have full control over all aspects of the MQ insta ## Supplying TLS certificates -If you wish to supply TLS Certificates that the queue manager and MQ Console should use for TLS operations then you must supply the unencrypted PEM files for both the certificates and private keys in the following directories: +If you wish to supply TLS Certificates that the queue manager and MQ Console should use for TLS operations then you must supply a PKCS#1 or unencrypted PKCS#8 PEM files for both the certificates and private keys in the following directories: * `/etc/mqm/pki/keys/