Develop Windows 8 Metro, push XML methods to the system, and sign XML

Source: Internet
Author: User

For example, to push a Wi-Fi profile to the system, you must first Prepare an XML file that complies with the WiFi profile of carriercontrolschema Schema (refer Http://blogs.msdn.com/ B /dimeby8/archive/2011/11/01/sample-xml-document-for-provisioningagent-provisionfromxmldocumentasync.aspx ), And then use Provisioningagent . ProvisionfromxmldocumentasyncMethod: Push a Wi-Fi device to the system.
Profile. Refer: Mobile broadband account provisioning sample Http://code.msdn.microsoft.com/windowsapps/ProvisioningAgent-Modern-19afe43b,
You need to sign the XML certificate again in the following way:

  • Open powershell with the Administrator and run as admin
  • Enter the import-module "C: \ Program Files (x86) \ Windows kits \ 8.0 \ bin \ x86 \ provisioningtesthelper. psd1" command to load the module
  • Enter install-testevcert to generate a new signature certificate
  • Open IE, enable Internet Options, open content, click certificates to find the personal certificate. You can see the newly generated and installed mbatestcert certificate.
  • Find the XML file and use the convertify-signedxml signature.
  • Use this file as the input and the certificate mbaptestcert as the signature certificate for signature.
  • The process is as follows:

ps e: \ windows \ system32> convertify-signedxml

The cmdlet converconverter-signedxml located in location 1 of the command Pipeline
Provide values for the following parameters:
(Enter !? To view help .)
Inputfile: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ provisioningdata. xml
Outputfile: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ test. xml
Certname: mbaptestcert
Loading XML file...
Successfully Loaded File: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ provisioningdata. xml
Retrieving certificate...
Successfully retrieved Certificate
Generating signature...
Successfully generated signature
Successfully added signature to XML
Saved output file: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ test. xml

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.