-
Notifications
You must be signed in to change notification settings - Fork 647
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
security/openconnect: add field to add certificate hash #723
Conversation
| <id>general.servercert</id> | ||
| <label>Certificate Hash</label> | ||
| <type>text</type> | ||
| <help>If you have a wildcard certificate or the CA is untrusted, you have to enter the SHA hash of the certificate to force a connect.</help> |
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.
SHA1 or SHA256 ?
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.
I can add a dropdown to choose for both
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.
only sha256 is ok, but it should say so in the label and help text
| @@ -23,5 +23,9 @@ | |||
| <default>password</default> | |||
| <Required>Y</Required> | |||
| </password> | |||
| <servercert type="TextField"> | |||
| <Required>N</Required> | |||
| <ValidationMessage>Please provide a valid hash.</ValidationMessage> | |||
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.
No validation logic no validation error?
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.
Can you have a look in one of the last commits in PR? I had a validator nur it wasn't accepted.
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.
which format does it accept? XXXXXX.. or XX:XX:XX..?
|
Now it's correct ... |
| <multiple>N</multiple> | ||
| <Required>Y</Required> | ||
| <OptionValues> | ||
| <sha256>sha256</sha256> |
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.
SHA256 for the label
| <Required>Y</Required> | ||
| <OptionValues> | ||
| <sha256>sha256</sha256> | ||
| <sha1>sha1</sha1> |
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.
SHA1 for the label
|
fixed .. |
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.
❤️
|
Merged, thanks! |
(cherry picked from commit 7d40d1a)
(cherry picked from commit 7d40d1a)
If using wildcard cert or CA is untrusted you have to add the certificate hash manually.
https://forum.opnsense.org/index.php?topic=9090.0