When the server sends the whole cert chain, extract the elements after the leaf/EE certificate to be passed into X509Chain.ChainPolicy.ExtraStore; this will prevent failures due to unknown intermediate CAs (and may also prevent the need to download that intermediate).
Commit migrated from https://github.com/dotnet/corefx/commit/69b872484086379160ea03bcfe8fa55fbeaec0db
`build.cmd /p:LockDependencies=true` was the start of this change, but some errors with xunit build numbers led to all xunit upgrades being reset back to what they had in master.
project.json changes:
* System.Net.Security\src Switch off of explicit beta versioning, use the same baseline as everyone else. The S.S.C.Algorithms explicit upgrade is no longer required.
* System.Net.Requests\tests didn't build. Looking at the project.lock.json change, it appeared that a System.Net.Http reference was lost, restored it.
* System.Net.Http\tests didn't build. Looking at the project.lock.json change, it appeared that a System.IO.FileSystem reference was lost, restored it.
* System.Net.WebSockets.Client\src didn't build. Looking at the project.lock.json change, it appeared that a System.Collections (4.0.10) reference was lost, restored it.
* System.Diagnostics.TextWriterTraceListener\tests needed the runtime reference to load the correct System.Diagnostics.TraceSource binary.
Commit migrated from https://github.com/dotnet/corefx/commit/cec3a0f2db542bfa9d9c56bf988d966eacc35ad9
During PAL refactoring the order that a null server certificate and no valid protocols were checked got flipped, resulting in a minor observable difference in exception flows.
This restores the order to what it was before.
Commit migrated from https://github.com/dotnet/corefx/commit/1fe3d77606061dcebe795e2fb9b3721f05ea3008
Added a method in the crypto shim (CheckX509Hostname) which does the heavy lifting. It may end up making sense to push this up into managed for better flexibility when trying to add support for IDNA; but that would be greatly assisted by having good managed decoders for the subject name pieces and the SubjectAltNames extension.
Verified that it works against an explicit SAN entry and a wildcard SAN entry.
Commit migrated from https://github.com/dotnet/corefx/commit/c9407c8daa7498ebb4ae1e35c92995f62d8c3c38
If a cert is used in SSL handshake, the certificate information needs
to persist for the SSL session. This is achieved by storing the cert
in a SafeFreeCredentials and bumping up its refcount. But we were
incorrectly doing this in AcquireCredentials instead of the first
invocation of InitializeSecurityContext/AcceptSecurityContext
Commit migrated from https://github.com/dotnet/corefx/commit/3c46b8ab60c2d5ff3ad0caa7398bc1e3aa1c9c20
An in-place buffer is used in the Encrypt code path. The unencrypted
data is copied at an offset of headerSize but the code in Interop.
OpenSsl.cs was asssuming that data starts at offset 0. Due to this
incorrect data was received by the peer.
Commit migrated from https://github.com/dotnet/corefx/commit/9c38fd8efec765b60986707d6f15551bcc8e4e8f
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.
After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.
Fixesdotnet/corefx#3173
Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions. Assemblies with API differences
get a minor version bump. Assemblies with only bugfixes get a build version
bump.
In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.
[tfs-changeset: 1514419]
Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae