Configuration de SSL sur ASP.NET Auto-Hébergé Web API

Je suis de la création d'Auto-hébergé API Web service. Pour le fixer, j'ai étudié et mis en œuvre cette article, réussi à générer un Certificat SSL local à l'aide de makecert et mon service authentifié et génère des jetons de bien, si je suis en utilisant

http://localhost/webapi/authentication/authenticate

lien, mais quand j'essaie d'accéder à mon service à l'aide de HTTPS, je reçois la suite sur Firefox:

ssl_error_rx_record_too_long

et pour la même demande Fiddler me montre:

HTTP/1.1 502 Fiddler - Échec de la Connexion Date: Mon, 26 Aug 2013
10:44:27 GMT Content-Type: text/html; charset=UTF-8 Connection: close
Timestamp: 13:44:27.433

[Fiddler] La socket de connexion à localhost a échoué.
A échoué à
négocier la connexion HTTPS avec le serveur.fiddler.réseau.https>
Échoué à sécuriser la connexion existante pour localhost. La poignée de main
a échoué en raison d'un format de paquet inattendu..

Mon auto-configuration de l'hôte:

    private HttpSelfHostServer _server;
    private ExtendedHttpsSelfHostConfiguration _config;
    public const string ServiceAddress = "https://localhost/webapi";
    _config = new ExtendedHttpsSelfHostConfiguration(ServiceAddress);
    _server = new HttpSelfHostServer(_config);
    _server.OpenAsync();

où ExtendedHttpSelfHostConfiguration prises de ce post est:

public class ExtendedHttpSelfHostConfiguration : HttpSelfHostConfiguration
{
    public ExtendedHttpSelfHostConfiguration(string baseAddress) : base(baseAddress) { }
    public ExtendedHttpSelfHostConfiguration(Uri baseAddress) : base(baseAddress) { }

    protected override BindingParameterCollection OnConfigureBinding(HttpBinding httpBinding)
    {
        if (BaseAddress.ToString().ToLower().Contains("https://"))
        {
            httpBinding.Security.Mode = HttpBindingSecurityMode.Transport;
        }

        return base.OnConfigureBinding(httpBinding);
    }
}

Ce que je suis absent?
Merci à l'avance!

InformationsquelleAutor insomnium_ | 2013-08-26