White Papers
Dellâ„¢ Lifecycle Controller 2 Web Services Interface Guide for Linux  Version: 2.1.0 
114 
The input file SetPublicCertificate.xml is shown below: 
<p:SetPublicCertificate_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_LCService"> 
<p:Type>directoryCA</p:Type> 
<p:Certificate> 
-----BEGIN CERTIFICATE----- 
MIID9DCCA12gAwIBAgIBADANBgkqhkiG9w0BAQQFADCBszELMAkGA1UEBhMCVVMx 
CzAJBgNVBAgTAlRYMQ8wDQYDVQQHEwZBdXN0aW4xDTALBgNVBAoTBERlbGwxFjAU 
. 
. 
. 
H/ea71Ltbr/Au2QFhqcHkeUEbQ4qXSXTmDEgeKAImKjoCAaWHcDqEwvUcxGI4ekG 
LaUEGQhQIcLe+03RDp05j+YPoIv/N10OGMflhWg/lJ3EoV1Zba2tXnCp8XvCukJC 
ROncFRPIp7c= 
-----END CERTIFICATE----- 
</p:Certificate> 
</p:SetPublicCertificate_INPUT> 
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/cim-
schema/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 










