Setting up SSL on Remote Lights Out Cards
In an attempt to up security and stop sending our passwords over clear text, I recently setup an in house certificate authority at work. While I’m not going to go through setting up the actual CA (see g-loaded.eu), I am going to go through the steps of how to set up a few different hardware vendor/types to work with a signed certificate. One thing I learned during this process is that almost every single product, even made by the same company, is different.
IBM BladeCenters
> Get the key from the BladeCenter
- Login to the BladeCenter
- Expand “MM Control”
- Click “Network Protocols”
- Click “Secure Shell (SSH) Server”
- Under the SSL for “Web Server click Generate” a “Generate a New Server Key and Certificate Signing Request (CSR)”
- You’ll need to fill out the requested information down to SurName, then click “Generate CSR”
- Save the key to your machine, prepend machine. (bladecenter.) to the beginning of the file name to denote where it came from
> SCP the file to root@server:/path/to/your/CA/requests/
> To convert the DER encoded CSR to a PEM encoded CSR, within the above folder, run:
cd /path/to/your/CA/requests openssl req -inform DER -in bladecenter.csr_server.der -out bladecenter.csr.pem -outform PEM
> To sign the key, run:
cd /path/to/your/CA openssl ca -config openssl.cnf -policy policy_anything -out certs/bladecenter.crt -infiles requests/bladecenter.csr.pem
> Convert the created .crt file to a .der file, run:
cd /path/to/your/CA/certs openssl x509 -in bladecenter.crt -inform PEM -out bladecenter.crt.der -outform DER
> SCP the cert file (/path/to/your/CA/certs/bladecenter.crt.der) back to your system
> Import the cert into the AMM
- Click “Import a Signed Certificate to the Server”
- Browse for the file you just copied back from server (bladecenter.crt.der)
- Click “Import Server Certificate”
IBM RSA II
> Get the key from the RSA II Controller
- Login to the RSA II Controller
- Click “Security”
- Under the SSL for “Web Server click Generate” a “Generate a New Server Key and Certificate Signing Request (CSR)”
- You’ll need to fill out the requested information down to SurName, then click “Generate CSR”
> Save the key to your machine, prepend machine. (rsa.) to the beginning of the file name to denote where it came from
> SCP the file to root@server:/path/to/your/CA/requests/
> To convert the DER encoded CSR to a PEM encoded CSR, within the above folder, run:
cd /path/to/your/CA/requests openssl req -inform DER -in rsa.csr_server.der -out rsa.csr.pem -outform PEM
> To sign the key, run:
cd /path/to/your/CA openssl ca -config openssl.cnf -policy policy_anything -out certs/rsa.crt -infiles requests/rsa.csr.pem
> Convert the created .crt file to a .der file, run:
cd /path/to/your/CA/certs openssl x509 -in rsa.crt -inform PEM -out rsa.crt.der -outform DER
> SCP the cert file (/path/to/your/CA/rsa.crt.der) back to your system
> Import the cert into the RSA II Controller
- Click “Import a Signed Certificate to the Server”
- Browse for the file you just copied back from server (rsa.crt.der)
- Click “Import Server Certificate”
HP iLO
> Get the Signing Request from the iLO
- Login to the iLO
- Hover over “Administration”
- Select “Certificate Administration”
- Click “Create Certificate Request”
- Copy and paste the request from the box and into server:/path/to/your/CA/requests/ilo.csr.pem
> To sign the key, run:
cd /path/to/your/CA openssl ca -config openssl.cnf -policy policy_anything -out certs/ilo.crt -infiles requests/ilo.csr.pem
> Import the cert into the iLO
- Click “Import Certificate”
- Enter the contents of /path/to/your/CA/certs/ilo.crt into the provided box
- Click “Next”
Sun eLOM
> Get the Signing Request from the eLOM
- Login to the eLOM
- Click “Configuration”
- Click “System Management Access”
- Click “SSL Certificate”
- Select “Certificate” and click “Select”
> Generate the request:
cd /path/to/your/CA openssl req -config openssl.cnf -new -nodes -keyout private/elom.key -out requests/elom.csr -days 365
You’ll be asked specific questions about the servers location, most of the defaults have been set in openssl.cnf, however you’ll need to make sure the domain name (CN) is correct.
> Sign the key:
cd /path/to/your/CA openssl ca -config openssl.cnf -policy policy_anything -out certs/elom.crt -infiles requests/elom.csr
> Import the Key on the eLOM
- Upload the generated Certificate first (server:/path/to/your/CA/certs/elom.crt)
- Upload the generated Key Second (server:/path/to/your/CA/private/elom.key)
Dell DRAC
> Get the Signing Request from the DRAC
- Login to the DRAC
- Click the “Configuration” tab
- Click the “Security” tab
- Select “Generate a new Certificate Signing Request (CSR)”
- Click “Next”
- Complete the listed fields making sure that the “Common Name” (CN) is the full host name of the console
- Click “Generate”, wait for it to generate the request. It will pop up with a download for “csr.txt” when it is complete. Save the file.
- Rename csr.txt to include the hostname of the box, EX: drac.csr.txt
- SCP the file to root@server:/path/to/your/CA/requests
> To sign the key, run:
cd /path/to/your/CA openssl ca -config openssl.cnf -policy policy_anything -out certs/drac.crt -infiles requests/drac.csr.txt
> Edit the crt file to remove everything above the “—–BEGIN CERTIFICATE—–” line
> Save the File with DOS-style Line-Ending CR-LF (:set ff=dos in vi)
> Import the cert into the DRAC
- Return to “Certificate Management”
- Select “Upload DRAC 4 server certificate”
- Click “Next”
- Select the certificate you just signed
- Click “Upload”