Partager via


Configure a Web Server to use SSL (Compact 2013)

3/26/2014

You can configure your web server to authenticate SSL (HTTPS) connections from clients to the server. To enable authentication through SSL, you need to install a certificate (.cer file) and a private key (.pvk file) on your web server device. Because Windows Embedded Compact 2013 does not support requesting a certificate from a Windows Embedded Compact-based web browser, you need to request the certificate on a desktop computer that uses a Windows-based browser.

The instructions in this topic apply to non-headless design templates. Microsoft does not provide an end-to-end mechanism for importing certificates onto headless Windows Embedded Compact-based devices. To import a certificate onto a headless device, you can use the Enroll.exe tool. You can also use a web server or FTP server to upload a certificate onto your device, and then write an application that calls the appropriate Certificates Functions. For more information, see Certificates and Using Test Certificates During Development.

To configure a web server to use SSL

  1. On a desktop computer that uses a Windows-based browser, request a certificate. When you request the certificate, make sure to select a server authentication certificate.

  2. On your development workstation, copy the .cer and .pvk files to the release directory of the OS design for the web server. Rebuild the run-time image for the web server.

  3. Configure a remote connection from the development workstation to the device. For more information, see Target Device Connectivity Options Dialog Box.

  4. Download the image to the device.

  5. If you have used a non-headless design template, on your target device open Control Panel, and then select Certificates.

  6. To import the certificate and the corresponding private key, click the Import button.

    Note

    You must install the .cer file before you install the .pvk file to enable the private key to be associated with the certificate.

See Also

Concepts

SSL Support
Web Server Authentication and Permissions
Web Server Security