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
{{ message }}
Repository navigation
On Linux, cannot create PFX with private key if has more than single cert in collection #24554
Looking at the code, I think that the code is missing setting of privateCertHandle and privateCertKeyHandle, which cause it to skip the entry with the private key.
@danmosemsft Yes, I can do that.
One thing that I wonder, there is the GC.KeepAlive call there, which is strange.
The value that is there is already kept alive because is is on _certs, no? Am I missing something?
Okay, some of them looks legit, if the GC is really active, some are probably not relevant since the instance is holding this, I'll match this style, just in case.
Activity
ayende commentedon Jan 3, 2018
Note that the same code on Windows generates the PFX properly
danmoseley commentedon Jan 3, 2018
Do you want to offer a PR + test @ayende ?
ayende commentedon Jan 3, 2018
@danmosemsft Yes, I can do that.
One thing that I wonder, there is the
GC.KeepAlivecall there, which is strange.The value that is there is already kept alive because is is on
_certs, no? Am I missing something?danmoseley commentedon Jan 3, 2018
@ayende it looks like from 1dd166f comment that it was added for consistency/defensively.
ayende commentedon Jan 3, 2018
Okay, some of them looks legit, if the GC is really active, some are probably not relevant since the instance is holding this, I'll match this style, just in case.
Fixing #26125 - When exporting a certificate collection with more tha…
bartonjs commentedon Jan 25, 2018
Fixed by dotnet/corefx#26152.