次の方法で共有


Adding Certificates to the Privileged, Unprivileged, and SPC Stores Example for OMA DM

Send Feedback

This example shows how to add certificates to the privileged and, normal stores, and how to add a certificate with its corresponding role mask to the SPC store.

Note   To use this example, you must replace the values as appropriate, and add the node as a child of the SyncBody node in an OMA DM provisioning file. For more information about the syntax of the provisioning file, see OMA DM Provisioning Files.

<Add>
   <CmdID>1</CmdID> 
   <Item>
      <Target>
         <LocURI>./Vendor/MSFT/CertificateStore/Privileged%20Execution%20Trust%20Authorities/{sha1 hash of the certificate}/EncodedCertificate</LocURI> 
      </Target>
      <Data>{b-64 encoded certificate}</Data> 
      <Meta>
         <Format xmlns="syncml:metinf">b64</Format> 
      </Meta>
   </Item>
</Add>
<Add>
   <CmdID>2</CmdID> 
   <Item>
      <Target>
         <LocURI>./Vendor/MSFT/CertificateStore/Unprivileged%20Execution%20Trust%20Authorities/{sha1 hash of the certificate}/EncodedCertificate</LocURI> 
      </Target>
      <Data>{b-64 encoded certificate}</Data> 
      <Meta>
         <Format xmlns="syncml:metinf">b64</Format> 
      </Meta>
   </Item>
</Add>
<Add>
   <CmdID>3</CmdID> 
   <Item>
      <Target>
         <LocURI>./Vendor/MSFT/CertificateStore/SPC/{sha1 hash of the certificate}/EncodedCertificate</LocURI> 
      </Target>
      <Data>{encoded certificate}</Data> 
      <Meta>
         <Format xmlns="syncml:metinf">b64</Format> 
      </Meta>
   </Item>
<Item>
- <Target>
   <LocURI>./Vendor/MSFT/CertificateStore/SPC/{hash of the certificate}/Role</LocURI> 
   </Target>
   <Data>16</Data> 
- <Meta>
   <Format xmlns="syncml:metinf">int</Format> 
   </Meta>
   </Item>
   </Add>

See Also

CertificateStore Configuration Service Provider Examples for OMA DM

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.