SSL mutual authentication and more httpcfg magic

I've been trying to get mutual authentication, where the client and service both have certificates, to work over SSL (specifically HTTPS) for a simple demo I'm doing at PDC. In an earlier entry, I mentioned httpcfg, the tool you use to configure the server side certificate (amongst other things). Unfortunately, while the command line I provided in that entry works just fine for server-only authentication, it doesn't work for mutual authentication. If you try mutual authentication, the client will probably get the helpful '403, Forbidden' error from the HTTP layer. In order for mutual authentication to work the flags parameter to httpcfg needs to be set to '2'. So the full command line needs to be something like;
 
   httpcfg set ssl -I 0:0:0:0:8088 -h abcdefabcdefabcdef -f 2
 
Hopefully this will save someone some time if they're having trouble getting mutual authentication over HTTPS to work.
 
Thanks to Hao Xu from the Indigo core messaging team for helping me track this down.
 
 

Posted Aug 30 2005, 07:16 AM by martin-gudgin
Filed under: ,

Comments

ian wrote re: SSL mutual authentication and more httpcfg magic
on 08-31-2005 7:15 AM
It's always nice to have clear, obvious flags like '2' ;-)

Musings from Gudge wrote httpcfg flags
on 08-31-2005 1:45 PM
Mike Taulty's Weblog wrote WCF: Basic HTTP Profile with Mutual Certificate Authentication
on 12-13-2005 5:25 PM
Pedro Felix wrote Configuring http.sys server SSL certificate (and private key)
on 12-29-2005 11:58 AM
Having problems using transport layer security (SSL/TLS) with WCF (aka Indigo)?
Are you getting...
Musings from Gudge wrote httpcfg Flag Weirdness
on 05-16-2006 3:24 AM

Add a Comment

(required)  
(optional)
(required)  
Remember Me?