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

【bug】com.alibaba.nacos.api.config.ConfigService how to use https? #13088

Open
13675139195 opened this issue Feb 7, 2025 · 2 comments
Open
Labels
area/Document Category issues or prs related to document. contribution welcome

Comments

@13675139195
Copy link

13675139195 commented Feb 7, 2025

When I use ConfigService to fetch the configuration file, how do I use https for the serverAddr setting? The source code only defines ServerHttpAgent, and self-signed certificates are not trusted.

Image

Image

@KiteSoar
Copy link
Contributor

KiteSoar commented Feb 8, 2025

What version is your Nacos client? The 2.xx version of the client obtains configurations through gRPC instead of HTTP.

@KomachiSion
Copy link
Collaborator

nacos-client 2.x is support tls with grpc request.

see com.alibaba.nacos.common.remote.client.RpcClientTlsConfigFactory#createSdkConfig

Also welcome community contributor add properties to document: https://nacos.io/docs/next/manual/user/java-sdk/properties/?spm=5238cd80.2ef5001f.0.0.3f613b7cvEYegh

@KomachiSion KomachiSion added area/Document Category issues or prs related to document. contribution welcome and removed status/need feedback labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Document Category issues or prs related to document. contribution welcome
Projects
None yet
Development

No branches or pull requests

3 participants