-
Notifications
You must be signed in to change notification settings - Fork 428
Add SHA-2 self-signed cert and use SecureString as password parameter #1656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c16c902
to
3dd0776
Compare
LGTM. I will leave it to someone in Wilson team to sign off. |
test/Microsoft.IdentityModel.Tokens.Tests/RsaCryptoServiceProviderProxyTests.cs
Show resolved
Hide resolved
"_justification": "File contains tokens that are used only for testing purposes." | ||
} | ||
] | ||
"suppressions": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
private static SecureString ConvertToSecureString(string password) | ||
{ | ||
if (password == null) | ||
throw new ArgumentNullException("password"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can be replaced with nameof(password)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Fix security bugs:
Using SHA256 and create a new self-signed cert
Using SecureString as password parameter