Skip to content
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

feat: support pass cert and priv key content #79

Merged
merged 1 commit into from
Aug 28, 2023
Merged

feat: support pass cert and priv key content #79

merged 1 commit into from
Aug 28, 2023

Conversation

Sn0rt
Copy link
Contributor

@Sn0rt Sn0rt commented Aug 25, 2023

@Sn0rt Sn0rt marked this pull request as draft August 25, 2023 07:28
Signed-off-by: Sn0rt <wangguohao.2009@gmail.com>
@Sn0rt Sn0rt marked this pull request as ready for review August 27, 2023 01:29
+ if type(client_cert_path) ~= "string" then
+ error("bad client_cert option type", 2)
+ if options.client_priv_key_path and options.client_priv_key then
+ error("client certificate private key supplied with " ..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message is somewhat ambiguous.
It should be noted that: Only one of the parameters 'a' and 'b' can be set
WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APISIX's ci checks the error message format returned by this function.

@leslie-tsang leslie-tsang merged commit f66d3f8 into api7:main Aug 28, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants