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

Add SSL certificate query #1384

Closed
jcamiel opened this issue Mar 23, 2023 · 0 comments · Fixed by #1332
Closed

Add SSL certificate query #1384

jcamiel opened this issue Mar 23, 2023 · 0 comments · Fixed by #1332
Labels
enhancement New feature or request
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Mar 23, 2023

GET https://localhost:8001/hello

HTTP 200
[Asserts]
certificate "Subject" == "C=US, ST=Denial, L=Springfield, O=Dis, CN=localhost"
certificate "Issuer" == "C=US, ST=Denial, L=Springfield, O=Dis, CN=localhost"
certificate "Start-Date" format "%Y-%M-%d %H:%m:%S UTC" == "2023-29-10 08:01:52 UTC"
certificate "Expire-Date" format "%Y-%M-%d %H:%m:%S UTC" == "2025-29-30 08:10:52 UTC"
certificate "Serial-Number" == "1e:e8:b1:7f:1b:64:d8:d6:b3:de:87:01:03:d2:a4:f5:33:53:5a:b0"

`Hello World!`

The asserts on the certificate are independent of the HTTPS connection.
We can access an HTTPS endpoint with an invalid certificate using an insecure connection (--insecure /-k) and still be able to check the certificate attributes.

@jcamiel jcamiel added the enhancement New feature or request label Mar 23, 2023
@jcamiel jcamiel added this to the 3.0.0 milestone Mar 23, 2023
@jcamiel jcamiel linked a pull request Mar 23, 2023 that will close this issue
@jcamiel jcamiel closed this as completed Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant