dotnet/Documentation/compatibility/WCF-MsmqSecureHashAlgorithm...

37 lines
1.0 KiB
Markdown
Raw Normal View History

## WCF MsmqSecureHashAlgorithm default value is now SHA256
### Scope
Minor
### Version Introduced
4.7.1
### Source Analyzer Status
NotPlanned
### Change Description
2017-10-04 03:20:10 +08:00
Starting with the .NET Framework 4.7.1, the default message signing algorithm in WCF for Msmq messages is SHA256. In the .NET Framework 4.7 and earlier versions, the default message signing algorithm is SHA1.
- [ ] Quirked
- [ ] Build-time break
2017-10-24 01:08:47 +08:00
### Recommended Action
2017-10-04 03:20:10 +08:00
If you run into compatibility issues with this change on the .NET Framework 4.7.1 or later, you can opt-out the change by adding the following line to the `<runtime>`section of your app.config file:
2017-10-04 03:20:10 +08:00
```xml
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.System.ServiceModel.UseSha1InMsmqEncryptionAlgorithm=true" />
2017-10-24 01:08:47 +08:00
</runtime>
2017-10-04 03:20:10 +08:00
</configuration>
```
2017-10-24 01:08:47 +08:00
2017-10-24 01:46:29 +08:00
### Affected APIs
* Not detectable via API analysis
2017-10-04 03:20:10 +08:00
### Category
Windows Communication Foundation (WCF)
2017-10-04 03:20:10 +08:00
<!--
### Original Bug
[395687] (https://devdiv.visualstudio.com/web/wi.aspx?pcguid=011b8bdf-6d56-4f87-be0d-0092136884d9&id=395687)
2017-10-04 03:20:10 +08:00
-->