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

How to change the preheat x509 error #3210

Open
gssjl2008 opened this issue Apr 22, 2024 · 2 comments
Open

How to change the preheat x509 error #3210

gssjl2008 opened this issue Apr 22, 2024 · 2 comments
Assignees

Comments

@gssjl2008
Copy link

Configure deployment using the default helm

preheat

[root@xxxx ~]# curl  --location --request POST 'http://10.29.18.87:30175/api/v1/jobs'  --header 'Content-Type: application/json' -d '{"type": "preheat", "args": { "type": "image", "url": "https://10.29.0.41/v2/release.io/virtnest/system-images/ubuntu-22.04-x86_64/manifests/v1"}}'
{"message":"Get \"https://10.29.0.41/v2/\": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2024-04-22T08:44:35Z is after 2024-01-02T11:47:53Z"}[root@xxxx ~]#

how to solve

@gaius-qi gaius-qi self-assigned this Apr 22, 2024
@gssjl2008
Copy link
Author

gssjl2008 commented Apr 22, 2024

Can I skip certificates when post requests?

[root@master-18-86 ~]# cat /etc/containerd/certs.d/10.29.0.41/hosts.toml
server = "https://10.29.0.41"
[host."http://127.0.0.1:65001"]
  capabilities = ["pull", "resolve"]
  [host."http://127.0.0.1:65001".header]
  X-Dragonfly-Registry = ["https://10.29.0.41"]
[host."https://10.29.0.41"]
  capabilities = ["pull", "resolve"]
  skip_verify = true

I set skip_verify to true, but it has no effect on post requests

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

No branches or pull requests

2 participants