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

clarification on mTLS verification with curl #925

Merged
merged 4 commits into from
Feb 3, 2018
Merged

Conversation

ldemailly
Copy link
Member

this came from some confusion by a user on slack

from some confusion by user on slack
@@ -96,6 +96,8 @@ There are several steps:
```
```bash
...
* error fetching CN from cert:The requested data were not available.
Copy link
Member Author

Choose a reason for hiding this comment

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

this to show the expected error

Copy link
Member

@linsun linsun left a comment

Choose a reason for hiding this comment

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

Thank you Laurent!

server identity. As a result, we use curl option '-k' to prevent the curl client from verifying service identity
in server's (i.e., productpage) certificate.
server identity. As a result, we use curl option '-k' to prevent the curl client from aborting when failing to
find and verify the service identity
Copy link

@myidpt myidpt Feb 2, 2018

Choose a reason for hiding this comment

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

To avoid confusion, can you change "find and verify the service identity" to "find and verify the service name"?

Copy link
Member Author

Choose a reason for hiding this comment

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

k maybe server name even ?

@@ -111,11 +113,14 @@ Note that Istio uses [Kubernetes service account](https://kubernetes.io/docs/tas
as service identity, which offers stronger security than service name
(refer [here]({{home}}/docs/concepts/security/mutual-tls.html#identity) for more information).
Thus the certificates used in Istio do not have service name, which is the information that curl needs to verify
server identity. As a result, we use curl option '-k' to prevent the curl client from verifying service identity
in server's (i.e., productpage) certificate.
server identity. As a result, we use curl option '-k' to prevent the curl client from aborting when failing to
Copy link
Member Author

Choose a reason for hiding this comment

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

@wattli I rephrased a bit - what do you think ?

Copy link
Contributor

Choose a reason for hiding this comment

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

lgtm, thanks for fixing this up

@ldemailly ldemailly merged commit 5b4b284 into master Feb 3, 2018
@ldemailly ldemailly deleted the ldemailly-patch-2 branch February 3, 2018 00:21
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.

5 participants