You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enlighten ResolveKeySource for multithreaded mode (dotnet#13623)
Adds `[MSBuildMultiThreadableTask]` and `IMultiThreadableTask` to
`ResolveKeySource`. Absolutizes `KeyFile` before `File.OpenRead()` and
`CertificateFile` before
`FileExists`/`GetCertContentType`/`Import`/`X509Certificate2` ctor,
while preserving the original paths for `[Output] ResolvedKeyFile`
property and error messages.
Fixesdotnet#13620
Parent epic: dotnet#11834
Co-authored-by: Jan Kratochvil <jankratochvl@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
// we use the curent user name to randomize the associated container name, i.e different user on the same machine will export to different keys
123
127
// this is because SNAPI by default will create keys in "per-machine" crypto store (visible for all the user) but will set the permission such only
124
128
// creator will be able to use it. This will make imposible for other user both to sign or export the key again (since they also can not delete that key).
125
129
// Now different users will use different container name. We use ToLower(invariant) because this is what the native equivalent of this function (Create new key, or VC++ import-er).
126
130
// use as well and we want to keep the hash (and key container name the same) otherwise user could be prompt for a password twice.
0 commit comments