-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
request help: After put my SSL certificate to apisix ,I curl https and then meet some problem #2791
Comments
I configured SSL locally and access failed |
Is this certificate signed self? |
Yes |
Then that's an expected behavior, you may add the -k option to ignore the certificate verification. |
Hi, @Hmemories, have you checked your error log? |
@starsz I saw anything unusual error.log |
Hi, @Hmemories, have you put your SSL certificate to apisix before? Or maybe you can check this by doing
See: https://github.com/apache/apisix/blob/master/doc/admin-api.md#ssl In addition, I think it shouldn't cause Lua's thread to abort. |
Hi, @Hmemories, I think you should put the SSL certificate with
|
Here is my SSL certificate -----BEGIN PUBLIC KEY----- |
Hi, @Hmemories. You may have failed to get my point.
Like this, Just put all the content in the SSL certificate to apisix.
|
why don't you add a title for your issue? pem = '''-----BEGIN CERTIFICATE-----
... ...
-----END CERTIFICATE-----'''
key = '''-----BEGIN RSA PRIVATE KEY-----
... ...
-----END RSA PRIVATE KEY-----'''
cdata = {
"id": "1",
"cert": pem,
"key": key,
"snis": ["xxxx.org"]
}
headers = {
"X-API-KEY": "edd1c9f034335f136f87ad84b625c8f1"
}
r = requests.put("http://127.0.0.1:9080/apisix/admin/ssl/1",json = cdata,headers=headers)
print(r.text) my env is master branch, it was working well
|
@starsz ok |
@idbeta ok ,I'll try |
@Hmemories Like this:
|
@starsz ok, I got it |
@starsz I did it with you ,but it can‘t work |
@Hmemories.Emmmm. You had only generated a private key yet. Maybe you should take some time on how to generate an SSL certificate. |
ok,thanks |
Issue description
Environment
apisix version
): 2.0The text was updated successfully, but these errors were encountered: