White Papers
Dellâ„¢ Lifecycle Controller 2 Web Services Interface Guide for Windows  Version: 2.1.0 
99 
ROncFRPIp7c= 
-----END CERTIFICATE----- 
</p:Certificate> 
</p:SetPublicCertificate_INPUT> 
OUTPUT: 
SetPublicCertificate_OUTPUT 
 ReturnValue = 0 
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: 
winrm i 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 
-u:[USER] -p:[PASSWORD] 
-r:https://[IPADDRESS]/wsman -SkipCNcheck -SkipCAcheck  
-encoding:utf-8 -a:basic -file: SetCertificateAndPrivateKey.xml 
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_LCService"> 
<p:Type>server</p:Type> 
<p:PKCS12> 
MIIPUQIBAzCCDxcGCSqGSIb3DQEHAaCCDwgEgg8EMIIPADCCBTcGCSqGSIb3DQEH 
BqCCBSgwggUkAgEAMIIFHQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIySf0 
. 
. 
. 
CSqGSIb3DQEJFTEWBBQQycEruoYBo9ayA3csqSZO6x70NTAxMCEwCQYFKw4DAhoF 
AAQU+yOoD76JK1t4yzDgnOE562Cv9AQECM9hIXYFEgiLAgIIAA== 










