Re: Can't connect to SSL SOAP endpoint



Hello Hans,

Thank you for your reply!

As I mentioned, we could use makecert to create self-signed certificate on
localmachine store:

makecert -r -pe -n "CN= sha-test-01" -b 01/01/2000 -e 01/01/2036 -eku
1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft
RSA SChannel Cryptographic Provider" -sy 12

Makecert is a tool in .Net framework SDK. If you have .Net framework SDK or
VS 2005 installed , you may find it under

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin

If you don't have this on Win2008 server, you could copy it from a machine
with this tool installed.

After that, you could use certutil to get the information of the
certificate you just installed:

certutil -store "my" "sha-test-01"

================ Certificate 9 ================
Serial Number: 19349a16ea0d85a447d063e3d1323584
Issuer: CN=sha-petery-01
Subject: CN=sha-petery-01
Signature matches Public Key
Root Certificate: Subject matches Issuer
Cert Hash(sha1): af 62 e5 62 82 6d af 7f 92 de 7e 39 40 a2 75 eb 66 90 0e 71
Key Container = d3350ac9-43fb-40c7-a27c-25579259ae9c
Provider = Microsoft RSA SChannel Cryptographic Provider
Encryption test passed


======================

Note: By deault certutil is installed by OS and you use it directly in
command prompt.

The GUID you want is "Key Container" information in above output and in
this example: d3350ac9-43fb-40c7-a27c-25579259ae9c

The Certhash is af 62 e5 62 82 6d af 7f 92 de 7e 39 40 a2 75 eb 66 90 0e 71
in this sameple.


After that, you could try to install the certificate for SSL/https useage


netsh http add sslcert ipport=192.168.1.10:5000 certhash=
af62e562826daf7f92de7e3940a275eb66900e71
appid={ d3350ac9-43fb-40c7-a27c-25579259ae9c}

Note: You should use IP address and port according to the server and SSL
port you use in Webservice definition. For example:

CREATE ENDPOINT Sample_EP
AS HTTP (
SITE='*',
PATH='/SQL/test',
AUTHENTICATION=(INTEGRATED),
PORTS=(SSL),
SSL_PORT =5000
)
FOR SOAP (
WEBMETHOD
'testp1'(NAME='mytest.dbo.testp1'),
LOGIN_TYPE = Mixed,
WSDL=DEFAULT,
SCHEMA = STANDARD
)

If anything is unclear, or you have further questions, please feel free to
let's know. Thank you.



Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support


=====================================================

When responding to posts, please "Reply to Group" via your
newsreader so that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Cant connect to SSL SOAP endpoint
    ... RSA SChannel Cryptographic Provider" -sy 12 ... we could use makecert to create self-signed certificate on ... you could use certutil to get the information of the ... you could try to install the certificate for SSL/https useage ...
    (microsoft.public.sqlserver.connect)
  • Re: Windows Update repeats
    ... You cannot install some updates or programs ... to a Windows component, install a service pack for Windows or for a Windows ... The Microsoft digital signature affirms that software has been tested with ... Publishers certificate store. ...
    (microsoft.public.windowsupdate)
  • RE: updates after format
    ... if the Microsoft Server is down. ... software you are installing has not passed Windows Logo testing verify its ... When you try to download an ActiveX control, install an update to Windows ... and you do not have the appropriate certificate in your Trusted Publishers ...
    (microsoft.public.windows.mediacenter)
  • Re: ?Expired Security Certif for MS Update
    ... MBSA should run fine on a new install. ... faith in the downloads I have, that used the expired certificate to get ... At the risk of sounding like an alien abductee, this security invasion ... Microsoft and signed by a CA that your computer trusts I would not worry ...
    (microsoft.public.windowsxp.security_admin)
  • RE: CA and Windows mobile 5.0
    ... certificate or Third party certificate? ... How did you install CA on your mobile device? ... If your Windows SBS Server is running ISA Server, ...
    (microsoft.public.windows.server.sbs)

Loading