How can I resolve the error? The subject name of the certificate does not match the name of the target host?

  curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer 90d2c018-73d1-324b-b121-a162cf870ac0' 'https://172.17.0.1:8243/V1.0.2/stock/getNA?name=te'

Terminal requested

"curl: (51) SSL: the name of the certificate subject (localhost) does not match the name of the target host '172.17.0.1'"

Howerver, after I changed "172.17.0.1" to "localhost", it worked and got the result.

Why? Isn't the wrong configuration somewhere? Meanwhile, there is no log in http_access.log.

+4
source share
4 answers
+2

CN wso2 localhost. localhost . . , , .

+2

. . , -:

URI, 'http://some.example', var HTTPS '1'

0

git SSH git. git CN . git ssh. , CN -, CN https ( ssh, ).

0

Source: https://habr.com/ru/post/1665209/


All Articles