IBM Support

How to import LDAP server CA's certificate for use with LDAPS on HMC

How To


Summary

This document describes how to remove HMC ldap configuration and reconfigure it.

Objective

You might see the error:
"TLS: can't connect: TLS error -8179: Peer's Certificate issuer is not recognized.",
During the process of configuring LDAP between the HMC and the LDAP server (LDAP authentication).

LDAP Configuration nslcd.conf has incorrect permissions. This configuration prevents configuration changes from being saved.

Steps

To remove the ldap configuration, run:
chhmcldap -o r -r ldap

Then, reconfigure LDAP by HMC commands:

 

HMC Manual Reference Pages  - GETFILE (1)

getfile -t {krbkeyfile | ldapcacert | rsyslogcacert | rsysloghmccert | rsysloghmckey} -l {l | s} -f file [-h host-name -u user-ID [--passwd password] [-k SSH-private-key]]  [--help]

Example:

Get the LDAP CA certificate file locally from the user’s home directory, then deploy the file on the HMC:

getfile -t ldapcacert -l l -f <full-path-to-cert-file>

 

Note:

You have to import the certificate of the certification authority (CA) who signed the LDAP server's certificate first. This operation can't be done by using the GUI, right now there is a panel called "Manage Certificates" but this only deals with certificates for the HMC itself, not for LDAP servers.  Therefore, one has to import the certificate on the command line, this action can be done with the command stated previously.

HMC understands certificates in a PEM and DER formats. If you have certificate in p7b format, you might want to convert it using one of the following commands on your workstation before you can import on HMC:

     openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

     openssl pkcs7 -in file.p7b -outform DER -out file.der

     openssl pkcs7 -in file.p7b -outform PEM -out file.pem

Document Location

Worldwide

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SGGSNP","label":"Hardware Management Console V9"},"ARM Category":[{"code":"a8m50000000L2vzAAC","label":"Howto"}],"ARM Case Number":"TS004692029","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
29 December 2022

UID

ibm16395496