Share via


Registering an Advanced Certificate on the Windows Embedded CE-based Web Server

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

After you store the certificate on the Windows Embedded CE-based Web server as described in Installing the Certificate on a Windows Embedded CE-based Web Server, you must make the Web server aware of the new certificate. You do this by configuring the Web Server Registry Settings.

To register the certificate

  1. Add the following registry key.

    [HKEY_LOCAL_MACHINE\COMM\HTTPD\SSL] 
    "IsEnabled"=dword:1 
    "CertificateSubject"="<Name of the certificate>" 
    

    Note

    To include this configuration in the run-time image, add this registry setting in %_WINCEROOT%\OSDesigns&lt;OS Design name>&lt;OS Design Name>\Wince600&lt;BSP>\OAK\files\Project.reg file and rebuild the run-time image.

  2. Verify that the connection between Platform Builder and the run-time image on the Windows Embedded CE–powered device is currently active.

  3. In Platform Builder, open the Target Control window by choosing Target Control on the Target menu.

  4. At the command prompt, type the following command to refresh the Web server on the Windows Embedded CE–powered device.

    s services -d refresh htp0:
    

    You must refresh the Web server so that the server can access the updated certificate information. You can use the command-line option for Servicesd.exe, if the AllowCmdLine value is set to 1 under the HKEY_LOCAL_MACHINE\Services registry key. For more information about how to use these options, see Using Services.exe from the Command Line.

    Note

    You must refresh the Web server after you install the certificate on the device, even if the registry settings are configured in the run-time image.

The SSL certificate is now registered on the device. This enables you to browse secure Web sites (with URLs that begin with "https://").

See Also

Concepts

How to Set Up a Server Certificate for a Windows Embedded CE Web Server
Services.exe Registry Settings