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

spectrum publish x509: certificate signed by unknown authority #2029

Closed
chenxinma opened this issue Feb 12, 2021 · 2 comments
Closed

spectrum publish x509: certificate signed by unknown authority #2029

chenxinma opened this issue Feb 12, 2021 · 2 comments

Comments

@chenxinma
Copy link

Hi , I am trying to build a groovy integration using kamel tool.

kamel install -n data \ --cluster-type=Kubernetes \ --build-publish-strategy=Spectrum \ --maven-settings=configmap:camel-k-maven-config/settings.xml \ --registry-insecure=true \ --registry private.registry.inner \ --registry-auth-server=private.registry.inner \ --registry-auth-username=admin \ --registry-auth-password=abc123 \ --save

I got the following error :
spectrum - 2021/02/12 07:41:12 Pushing image private.registry.inner/data/camel-k-kit-c0j31vk2u1caq630ijl0:12380621 (insecure=true)... {"level":"info","ts":1613115674.9215019,"logger":"camel-k.builder","msg":"step failed with error: Get \"https://private.registry.inner/v2/\": x509: certificate signed by unknown authority","step":"github.com/apache/camel-k/pkg/builder/spectrum/Publisher","phase":40,"name":"kit-c0j31vk2u1caq630ijl0","task":"builder"}

Can anyone guess?

@chenxinma
Copy link
Author

chenxinma commented Feb 12, 2021

I had added the ca.
echo -n | openssl s_client -showcerts -connect private.registry.inner:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >> /usr/local/share/ca-certificates/registry.crt
update-ca-certificates

@chenxinma
Copy link
Author

solved with make a new image from camel-k:1.3.1 and add
echo -n | openssl s_client -showcerts -connect private.registry.inner:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >> /usr/local/share/ca-certificates/registry.crt update-ca-certificates
into the Dockfile.
set the --operator-image with the new image.

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

1 participant