4.2.3 Client Certificate Mapping Configuration
Create Request
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:To>http://localhost:80/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/ anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/transfer/Create </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true"> 153600 </wsman:MaxEnvelopeSize> <wsa:MessageID> uuid:05FC732F-9D6A-4A92-875C-171A2A71B938 </wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:SelectorSet> <wsman:Selector Name="Issuer"> 5600a015ca5e8a26f638b74e819ae92096da5c8c </wsman:Selector> <wsman:Selector Name="Subject">*@mig.net</wsman:Selector> <wsman:Selector Name="URI">*</wsman:Selector> </wsman:SelectorSet> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body> <cert:certmapping xmlns:cert="http://schemas.microsoft.com/wbem/wsman/1/config/service/ certmapping.xsd"> <cert:UserName>certAdminAccount</cert:UserName> <cert:password>Bull_dog1</cert:password> <cert:Enabled>true</cert:Enabled> </cert:certmapping> </s:Body> </s:Envelope>
Create Response
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:Action> http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse </wsa:Action> <wsa:MessageID> uuid:DDB06DC3-D3FB-480F-A1EA-275100D688C3 </wsa:MessageID> <wsa:To> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:To> <wsa:RelatesTo> uuid:05FC732F-9D6A-4A92-875C-171A2A71B938 </wsa:RelatesTo> </s:Header> <s:Body> <wst:ResourceCreated xmlns:wst="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <wsa:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> <wsa:ReferenceParameters> <wsman:ResourceURI> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsman:SelectorSet> <wsman:Selector Name="URI">*</wsman:Selector> <wsman:Selector Name="Subject">*@mig.net</wsman:Selector> <wsman:Selector Name="Issuer"> 5600a015ca5e8a26f638b74e819ae92096da5c8c </wsman:Selector> </wsman:SelectorSet> </wsa:ReferenceParameters> </wst:ResourceCreated> </s:Body> </s:Envelope>
Put Request
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:To>http://localhost:80/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/transfer/Put </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true"> 153600 </wsman:MaxEnvelopeSize> <wsa:MessageID> uuid:898949E0-D492-4E01-8D5D-B3982FF1C722 </wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:SelectorSet> <wsman:Selector Name="Issuer"> 1212131238d84023982e381f2 </wsman:Selector> <wsman:Selector Name="Subject">*.sampl.com</wsman:Selector> <wsman:Selector Name="URI"> http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/* </wsman:Selector> </wsman:SelectorSet> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body> <cert:CertMapping xmlns:cert="http://schemas.microsoft.com/wbem/wsman/1/config/service/ certmapping" xml:lang="en-US"> <cert:URI> http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/* </cert:URI> <cert:Subject>*.sampl.com</cert:Subject> <cert:Issuer>1212131238d84023982e381f2</cert:Issuer> <cert:UserName>certadminACCOUNT</cert:UserName> <cert:Enabled>false</cert:Enabled> <cert:Password /> </cert:CertMapping> </s:Body> </s:Envelope>
Put Response
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:Action> http://schemas.xmlsoap.org/ws/2004/09/transfer/ PutResponse </wsa:Action> <wsa:MessageID> uuid:28491235-98D4-43EE-95E9-5ED3D7D0A1B8 </wsa:MessageID> <wsa:To> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/ anonymous </wsa:To> <wsa:RelatesTo> uuid:898949E0-D492-4E01-8D5D-B3982FF1C722 </wsa:RelatesTo> </s:Header> <s:Body> <cert:CertMapping xmlns:cert="http://schemas.microsoft.com/wbem/wsman/1/config/service/ certmapping" > <cert:URI> http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/* </cert:URI> <cert:Subject>*.sampl.com</cert:Subject> <cert:Issuer>1212131238d84023982e381f2</cert:Issuer> <cert:UserName>certadminACCOUNT</cert:UserName> <cert:Enabled>false</cert:Enabled> <cert:PassCertToPlugin>false</cert:PassCertToPlugin> <cert:Password /> </cert:CertMapping> </s:Body> </s:Envelope>
Get Request
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:To>http://localhost:80/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/transfer/Get </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true"> 153600 </wsman:MaxEnvelopeSize> <wsa:MessageID> uuid:006AAD01-1C1D-4316-A837-C5A0753AEE5B </wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:SelectorSet> <wsman:Selector Name="Issuer"> 1212131238d84023982e381f2 </wsman:Selector> <wsman:Selector Name="Subject">*.sampl.com</wsman:Selector> <wsman:Selector Name="URI"> http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/* </wsman:Selector> </wsman:SelectorSet> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body /> </s:Envelope>
Get Response
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:Action> http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse </wsa:Action> <wsa:MessageID> uuid:4137066B-FEA6-43A4-9DE4-65C3BE07C4EA </wsa:MessageID> <wsa:To> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:To> <wsa:RelatesTo> uuid:006AAD01-1C1D-4316-A837-C5A0753AEE5B </wsa:RelatesTo> </s:Header> <s:Body> <cert:CertMapping xmlns:cert="http://schemas.microsoft.com/wbem/wsman/1/config/service/ certmapping" > <cert:URI> http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/* </cert:URI> <cert:Subject>*.sampl.com</cert:Subject> <cert:Issuer>1212131238d84023982e381f2</cert:Issuer> <cert:UserName>certadminACCOUNT</cert:UserName> <cert:Enabled>true</cert:Enabled> <cert:PassCertToPlugin>false</cert:PassCertToPlugin> <cert:Password /> </cert:CertMapping> </s:Body> </s:Envelope>
Delete Request
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:To>http://localhost:80/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true"> 153600 </wsman:MaxEnvelopeSize> <wsa:MessageID> uuid:D0EF8968-9372-494C-8FF6-7F7DB4A07CC5 </wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:SelectorSet> <wsman:Selector Name="Issuer"> 1212131238d84023982e381f2 </wsman:Selector> <wsman:Selector Name="Subject">*.sampl.com</wsman:Selector> <wsman:Selector Name="URI"> http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/* </wsman:Selector> </wsman:SelectorSet> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body /> </s:Envelope>
Delete Response
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:Action> http://schemas.xmlsoap.org/ws/2004/09/transfer/DeleteResponse </wsa:Action> <wsa:MessageID> uuid:F8D8373A-6C15-4297-8352-42695644158B </wsa:MessageID> <wsa:To> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:To> <wsa:RelatesTo> uuid:D0EF8968-9372-494C-8FF6-7F7DB4A07CC5 </wsa:RelatesTo> </s:Header> <s:Body /> </s:Envelope>
Enumerate Request
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsmv="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" <s:Header> <wsa:To>http://localhost:47001/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true">153600</wsman:MaxEnvelopeSize> <wsa:MessageID>uuid:70771286-DC7D-4684-BED0-2419470F8BE5</wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsmv:DataLocale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body> <wsen:Enumerate> <wsman:OptimizeEnumeration/> <wsman:MaxElements>1</wsman:MaxElements> </wsen:Enumerate> </s:Body> </s:Envelope>
Enumerate Response
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse</wsa:Action> <wsa:MessageID>uuid:1B90A699-FC23-4F86-BDCB-82F27CB77DBB</wsa:MessageID> <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> <wsa:RelatesTo>uuid:70771286-DC7D-4684-BED0-2419470F8BE5</wsa:RelatesTo> </s:Header> <s:Body> <wsen:EnumerateResponse> <wsen:EnumerationContext>uuid:5CA8D6FE-1129-40B2-A23B-0DE8EFB380E2</wsen:EnumerationContext> <wsman:Items> <cert:CertMapping xmlns:cert="http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping"> <cert:URI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/*</cert:URI> <cert:Subject>*.site1.com</cert:Subject> <cert:Issuer>1b3fd224d66c6413fe20d21e38b304226d192dfe</cert:Issuer> <cert:UserName>account1</cert:UserName> <cert:Enabled>true</cert:Enabled> <cert:Password>password1</cert:Password> </cert:CertMapping> </wsman:Items> </wsen:EnumerateResponse> </s:Body> </s:Envelope>
Pull Request
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsmv="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:To>http://localhost:47001/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true">153600</wsman:MaxEnvelopeSize> <wsa:MessageID>uuid:3CA6197F-0D60-4BD3-B728-3D4166DC45A9</wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsmv:DataLocale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body> <wsen:Pull> <wsen:EnumerationContext>uuid:5CA8D6FE-1129-40B2-A23B-0DE8EFB380E2</wsen:EnumerationContext> <wsen:MaxElements>1</wsen:MaxElements> </wsen:Pull> </s:Body> </s:Envelope>
Pull Response
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</wsa:Action> <wsa:MessageID>uuid:4EB85D92-50F3-4169-AAD0-CA87BB6998B2</wsa:MessageID> <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> <wsa:RelatesTo>uuid:3CA6197F-0D60-4BD3-B728-3D4166DC45A9</wsa:RelatesTo> </s:Header> <s:Body> <wsen:PullResponse> <wsen:Items> <cert:CertMapping xmlns:cert="http://schemas.microsoft.com/wbem/wsman/1/config/service/certmapping"> <cert:URI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/interop/*</cert:URI> <cert:Subject>*.site2.com</cert:Subject> <cert:Issuer>1b3fd224d66c6413fe20d21e38b304226d192dfe</cert:Issuer> <cert:UserName>account2</cert:UserName> <cert:Enabled>true</cert:Enabled> <cert:Password>password2</cert:Password> </cert:CertMapping> </wsen:Items> <wsen:EndOfSequence/> </wsen:PullResponse> </s:Body> </s:Envelope>