Reference Guide

105 Lifecycle Controller Web Services Interface Guide for Linux
OUTPUT:
<n1:SetPublicCertificate_OUTPUT>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:SetPublicCertificate_OUTPUT>
12.10 Set iDRAC Certificate and Private Key
This method is used to update an iDRAC certificate and private key pairs using the contents of a
PKCS#12 file.
Invoke SetCertificateAndPrivateKey() with the following parameters and syntax:
Type
: Specifies the service the certificate is for:
server = web server
PKCS12: Represents the base64 encoded contents of PKCS#12 file to upload. Note: This is the
contents of the file and not a filename.
PKCS12pin: Password to decode the PKCS12
EXAMPLE:
wsman invoke -a SetCertificateAndPrivateKey
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_LCService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_LCService,
SystemName=DCIM:ComputerSystem,Name=DCIM:LCService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J SetCertificateAndPrivateKey.xml -j utf-8 -y basic
The input file SetCertificateAndPrivateKey.xml is shown below:
<p:SetCertificateAndPrivateKey_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_LCSe
rvice">
<p:Type>server</p:Type>
<p:PKCS12>
MIIPUQIBAzCCDxcGCSqGSIb3DQEHAaCCDwgEgg8EMIIPADCCBTcGCSqGSIb3DQEH
BqCCBSgwggUkAgEAMIIFHQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIySf0
. . .
CSqGSIb3DQEJFTEWBBQQycEruoYBo9ayA3csqSZO6x70NTAxMCEwCQYFKw4DAhoF
AAQU+yOoD76JK1t4yzDgnOE562Cv9AQECM9hIXYFEgiLAgIIAA==
</p:PKCS12>
<p:PKCS12pin>1234567</p:PKCS12pin>
</p:SetCertificateAndPrivateKey_INPUT>
OUTPUT:
<n1:SetCertificateAndPrivateKey_OUTPUT>
<n1:Message> Server certificate successfully modified, iDRAC will now reset
and be unavailable for a few minutes</n1:Message>
<n1:MessageID>LC018</n1:MessageID>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:SetCertificateAndPrivateKey_OUTPUT>
12.11 Delete Auto-Discovery Server Public Key
This method is used to delete the public server key set earlier by the set auto discovery method.
Invoke DeleteAutoDiscoveryServerPublicKey() with the following parameters and syntax: