How to automate importing certificates on a Window

2019-06-08 05:43发布

问题:

I'd like to automate importing cert(s) on a Windows CE device. Pushing the certs down to the devices is not a problem, but once they are there I cannot determine how to import them without using the UI.

(I'm currently using Avalanche Mobility Center)

回答1:

Another way to push certificates onto windows mobile devices is to use Windows Mobile Device Provisioning.

MSDN Provisioning Mobile Devices Article

For examples of certificate provisioning, in any of the Windows Mobile SDK directories, there is a SDKTools directory with examples xml files. e.g. on a standard VS 2008 install with the SmartDeice SDK installed

...\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools

As the above article points out, there are a number of ways you can provisioning a device. Installer CAB or CPF, an native application using the API or remotely connected device using RAPI or over the air (altho over the air is not really an option unless you are a mobile operator).

MSDN: CertificateStore Configuration Service Provider



回答2:

You need to execute the certificate from the command line. The easiest way to figure out what is happening is to go in to the .cert extension in Windows ME and see what command gets executed when a double click happens.