Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update powershell code to use APIs that take SecureString when they become available in .NET Core #3228

Copy link
Copy link
@daxian-dbw

Description

@daxian-dbw
Issue body actions

PowerShell Core currently uses some APIs that only take plain password text, because the overloads that take SecureString is not available in .NET Core. But once they become available, we need to update our code to switch to the latter.

Instances: (not a complete list)
Constructor of NetworkCredential at Credential.cs
Constructor of X509Certificate2 in CertificateCommands.cs
ProcessStartInfo.PasswordInClearText at [Process.cs]

Feel free to update this list when you spot one.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Resolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWaiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.