我该如何解析"CRLfile:none"?我执行curl命令时出现错误? [英] how can I resolve "the CRLfile:none" the error when I do curl command?

查看:124
本文介绍了我该如何解析"CRLfile:none"?我执行curl命令时出现错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer 2118b878-46a8-3b9d-a911-8ac18a0b13cf' 'https://172.17.0.1:8243/V1.0.2/stock/getParam?age=123'

卷曲:(60)服务器证书验证失败. CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile:无

curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

在API MANAGER PLATFORM上设计API后,我执行curl命令,并且上面有日志.如何解决证书?

After I design an API on API MANAGER PLATFORM, I do the curl command and there is the above logs. How to resolve the cert?

推荐答案

您可能在使用自签名证书时遇到了麻烦.

You're probably having trouble with a self-signed certificate.

获取证书,并使用参数--cacert <certfile>对其进行身份验证.

Get the certificate and use the argument --cacert <certfile> to authenticate with it.

要测试您的功能,并且如果您完全确定证书是可以的,请尝试-k接受无效的证书.但是,您绝对不能在生产中这样做,并且/或者如果您不确定它是否是您想要的证书,那么就绝对不能这样做.

To test your function and if you are absolutely certain that the certificate is OK, try -k to accept the invalid certificate. However, you must never, ever do this in production and/or if you are unsure that it is the certificate that you intended as it takes away the value of using SSL.

这篇关于我该如何解析"CRLfile:none"?我执行curl命令时出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆