Michael
2005-10-05 23:46:03 UTC
OK, I've banged my head against the wall on this problem for 2 days now, so
its time to ask for help. I'm trying to enable SSL on the web server in CE
5.0.
I've set the IsEnabled and CertificateSubject registry settings under
Comm\HTTPD\SSL.
I created a .p12 certificate and private key using OpenSSL and imported into
the MY store using PFXImportCertStore. The certificate's CN matches the
device's hostname. The validity dates are OK. The certificate has the
server authentication extended key usage (1.3.6.1.5.5.7.3.1). The import
seems to go OK. I can see the cert listed in the MY store. But when the
httpd server starts, I get this message:
HTTPD: AcquireCredentialsHandle failed, no SSL will be performed. Error =
0x8009030d
I'm stumped! What could be causing this problem? Has anyone actually
gotten WinCE 5.0 with web/ssl working?
Thanks for any hints you might be able to give me...
Michael
p.s. Here is my cert as reported by OpenSSL:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 3 (0x3)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=US, ST=CA, O=Test, OU=intermediateCA, CN=Michael Wang,
intermediate/emailAddress=***@gmail.com
Validity
Not Before: Jul 1 12:00:00 2005 GMT
Not After : Jul 1 12:00:00 2025 GMT
Subject: C=US, ST=CA, O=Esocon, OU=Test,
CN=medmon-12345/emailAddress=***@gmail.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:cf:b8:8d:b9:10:2f:91:cc:6e:e6:9d:93:d5:cf:
15:96:2e:81:bb:d9:d1:d7:ce:98:f6:41:27:b1:78:
b0:e7:6c:93:75:50:0a:a1:92:e8:45:7d:a8:96:84:
e4:4a:fc:d2:b9:76:02:32:99:7a:37:c5:d2:c4:6b:
e1:5e:1e:24:a9:31:03:ed:a5:d5:4a:05:d3:cb:5e:
d0:e0:77:17:10:43:69:43:eb:b2:06:bf:1c:ec:64:
0e:33:70:b7:c1:81:c7:2d:1b:7c:9f:67:01:88:2b:
f2:0c:70:76:3a:3e:1a:5b:3b:a3:fe:b4:1a:28:24:
2c:df:f7:f1:0d:1b:dc:4b:51
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Extended Key Usage:
TLS Web Server Authentication
Signature Algorithm: md5WithRSAEncryption
bd:3c:72:7b:4b:68:30:03:0c:8c:98:3b:23:f7:67:bf:6d:c5:
7c:fb:7d:18:8d:51:78:b8:ba:14:17:c1:b0:3c:62:e7:d3:bf:
d4:03:fb:ed:28:3f:4e:da:92:8b:9d:57:4c:00:49:2f:1d:2e:
91:84:25:f5:f2:00:fa:34:21:ca:81:6a:ca:13:ee:89:d2:3f:
83:12:2c:2c:49:e6:91:8b:5a:10:26:95:a4:d1:76:ac:b2:c1:
1a:50:fc:46:ff:5f:f0:56:b3:67:f3:76:ab:b9:fa:f4:46:10:
22:2e:72:8e:16:76:d3:af:eb:df:da:85:4a:f4:49:60:e2:2e:
f8:23
-----BEGIN CERTIFICATE-----
MIICijCCAfOgAwIBAgIBAzANBgkqhkiG9w0BAQQFADCBiTELMAkGA1UEBhMCVVMx
CzAJBgNVBAgTAkNBMQ0wCwYDVQQKEwRUZXN0MRcwFQYDVQQLEw5pbnRlcm1lZGlh
dGVDQTEjMCEGA1UEAxMaTWljaGFlbCBXYW5nLCBpbnRlcm1lZGlhdGUxIDAeBgkq
hkiG9w0BCQEWEW13YW5nMjVAZ21haWwuY29tMB4XDTA1MDcwMTEyMDAwMFoXDTI1
MDcwMTEyMDAwMFowczELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQ8wDQYDVQQK
EwZFc29jb24xDTALBgNVBAsTBFRlc3QxFTATBgNVBAMTDG1lZG1vbi0xMjM0NTEg
MB4GCSqGSIb3DQEJARYRbXdhbmcyNUBnbWFpbC5jb20wgZ8wDQYJKoZIhvcNAQEB
BQADgY0AMIGJAoGBAM+4jbkQL5HMbuadk9XPFZYugbvZ0dfOmPZBJ7F4sOdsk3VQ
CqGS6EV9qJaE5Er80rl2AjKZejfF0sRr4V4eJKkxA+2l1UoF08te0OB3FxBDaUPr
sga/HOxkDjNwt8GBxy0bfJ9nAYgr8gxwdjo+Gls7o/60GigkLN/38Q0b3EtRAgMB
AAGjFzAVMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBBAUAA4GBAL08
cntLaDADDIyYOyP3Z79txXz7fRiNUXi4uhQXwbA8YufTv9QD++0oP07akoudV0wA
SS8dLpGEJfXyAPo0IcqBasoT7onSP4MSLCxJ5pGLWhAmlaTRdqyywRpQ/Eb/X/BW
s2fzdqu5+vRGECIuco4WdtOv69/ahUr0SWDiLvgj
-----END CERTIFICATE-----
its time to ask for help. I'm trying to enable SSL on the web server in CE
5.0.
I've set the IsEnabled and CertificateSubject registry settings under
Comm\HTTPD\SSL.
I created a .p12 certificate and private key using OpenSSL and imported into
the MY store using PFXImportCertStore. The certificate's CN matches the
device's hostname. The validity dates are OK. The certificate has the
server authentication extended key usage (1.3.6.1.5.5.7.3.1). The import
seems to go OK. I can see the cert listed in the MY store. But when the
httpd server starts, I get this message:
HTTPD: AcquireCredentialsHandle failed, no SSL will be performed. Error =
0x8009030d
I'm stumped! What could be causing this problem? Has anyone actually
gotten WinCE 5.0 with web/ssl working?
Thanks for any hints you might be able to give me...
Michael
p.s. Here is my cert as reported by OpenSSL:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 3 (0x3)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=US, ST=CA, O=Test, OU=intermediateCA, CN=Michael Wang,
intermediate/emailAddress=***@gmail.com
Validity
Not Before: Jul 1 12:00:00 2005 GMT
Not After : Jul 1 12:00:00 2025 GMT
Subject: C=US, ST=CA, O=Esocon, OU=Test,
CN=medmon-12345/emailAddress=***@gmail.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:cf:b8:8d:b9:10:2f:91:cc:6e:e6:9d:93:d5:cf:
15:96:2e:81:bb:d9:d1:d7:ce:98:f6:41:27:b1:78:
b0:e7:6c:93:75:50:0a:a1:92:e8:45:7d:a8:96:84:
e4:4a:fc:d2:b9:76:02:32:99:7a:37:c5:d2:c4:6b:
e1:5e:1e:24:a9:31:03:ed:a5:d5:4a:05:d3:cb:5e:
d0:e0:77:17:10:43:69:43:eb:b2:06:bf:1c:ec:64:
0e:33:70:b7:c1:81:c7:2d:1b:7c:9f:67:01:88:2b:
f2:0c:70:76:3a:3e:1a:5b:3b:a3:fe:b4:1a:28:24:
2c:df:f7:f1:0d:1b:dc:4b:51
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Extended Key Usage:
TLS Web Server Authentication
Signature Algorithm: md5WithRSAEncryption
bd:3c:72:7b:4b:68:30:03:0c:8c:98:3b:23:f7:67:bf:6d:c5:
7c:fb:7d:18:8d:51:78:b8:ba:14:17:c1:b0:3c:62:e7:d3:bf:
d4:03:fb:ed:28:3f:4e:da:92:8b:9d:57:4c:00:49:2f:1d:2e:
91:84:25:f5:f2:00:fa:34:21:ca:81:6a:ca:13:ee:89:d2:3f:
83:12:2c:2c:49:e6:91:8b:5a:10:26:95:a4:d1:76:ac:b2:c1:
1a:50:fc:46:ff:5f:f0:56:b3:67:f3:76:ab:b9:fa:f4:46:10:
22:2e:72:8e:16:76:d3:af:eb:df:da:85:4a:f4:49:60:e2:2e:
f8:23
-----BEGIN CERTIFICATE-----
MIICijCCAfOgAwIBAgIBAzANBgkqhkiG9w0BAQQFADCBiTELMAkGA1UEBhMCVVMx
CzAJBgNVBAgTAkNBMQ0wCwYDVQQKEwRUZXN0MRcwFQYDVQQLEw5pbnRlcm1lZGlh
dGVDQTEjMCEGA1UEAxMaTWljaGFlbCBXYW5nLCBpbnRlcm1lZGlhdGUxIDAeBgkq
hkiG9w0BCQEWEW13YW5nMjVAZ21haWwuY29tMB4XDTA1MDcwMTEyMDAwMFoXDTI1
MDcwMTEyMDAwMFowczELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQ8wDQYDVQQK
EwZFc29jb24xDTALBgNVBAsTBFRlc3QxFTATBgNVBAMTDG1lZG1vbi0xMjM0NTEg
MB4GCSqGSIb3DQ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