[ https://issues.apache.org/jira/browse/FLINK-10628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16671431#comment-16671431 ]
ASF GitHub Bot commented on FLINK-10628: ---------------------------------------- zentol commented on a change in pull request #6967: [FLINK-10628][E2E][SSL] Enable mutual REST SSL auth in e2e tests URL: https://github.com/apache/flink/pull/6967#discussion_r229997416 ########## File path: docs/ops/security-ssl.md ########## @@ -252,6 +252,25 @@ security.ssl.rest.key-password: rest_key_password security.ssl.rest.truststore-password: ca_truststore_password {% endhighlight %} +**Tips to query REST Endpoint with curl utility** + +You can generate convert the keystore into the `PEM` format using `openssl`: + +{% highlight bash %} +openssl pkcs12 -passin pass:rest_keystore_password -in rest.keystore -out rest.pem -nodes +{% endhighlight %} + +Then you can query REST Endpoint with `curl`: + +{% highlight bash %} +curl --cacert rest.pem flink_url +{% endhighlight %} + +If mutual SSL is enabled: + +{% highlight bash %} +curl --cacert rest.pem --cert rest.pem flink_url Review comment: remove second space after `--cacert rest.pem` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Add end-to-end test for REST communication encryption > ----------------------------------------------------- > > Key: FLINK-10628 > URL: https://issues.apache.org/jira/browse/FLINK-10628 > Project: Flink > Issue Type: Sub-task > Components: REST > Affects Versions: 1.7.0 > Reporter: Till Rohrmann > Assignee: Andrey Zagrebin > Priority: Major > Labels: pull-request-available > Fix For: 1.7.0 > > > With FLINK-10371 we added support for mutual authentication for the REST > communication. We should adapt one of the existing end-to-end tests to > require this feature for the REST communication. -- This message was sent by Atlassian JIRA (v7.6.3#76005)