Кажется, я не могу найти правильное место для настройки. Я получаю большую часть того, что кажется, с помощью кода ниже. Но где в пользовательской привязке указать правильные части для подписи?
Код: Выделить всё
WSHttpBinding binding = new WSHttpBinding();
binding.Security = new WSHttpSecurity()
{
Mode = SecurityMode.Transport,
Transport = new HttpTransportSecurity()
{
ClientCredentialType = HttpClientCredentialType.Certificate,
}
};
CustomBinding customBinding = new CustomBinding(binding);
UpdateBinding(customBinding);
Код: Выделить всё
private static void UpdateBinding(CustomBinding binding)
{
var sec = SecurityBindingElement.CreateCertificateOverTransportBindingElement();
sec.DefaultAlgorithmSuite = SecurityAlgorithmSuite.Basic128Sha256;
sec.IncludeTimestamp = true;
binding.Elements.Insert(0, sec);
}

Подробнее здесь: https://stackoverflow.com/questions/791 ... ap-message
Мобильная версия