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

只安装jre可以正常运行nacos 2.4.0吗? #12458

Closed
guoxiangdaxia opened this issue Aug 3, 2024 · 2 comments
Closed

只安装jre可以正常运行nacos 2.4.0吗? #12458

guoxiangdaxia opened this issue Aug 3, 2024 · 2 comments
Labels
kind/question Category issues related to questions or problems status/duplicate This issue or pull request already exists

Comments

@guoxiangdaxia
Copy link

由于我们有安全制度,linux服务器只能安装jre,不可以安装jdk。已知安装 java-1.8.0-openjdk-devel.x86_64是可以登录。但是换成了jre版本 java-1.8.0-openjdk-headless 。就登录就报错了。caused:Invalid key:javax.crypto.spec.SecretKeySpec@fa7579d9;

@guoxiangdaxia guoxiangdaxia changed the title 只安装jre可以正常nacos 2.4.0吗? 只安装jre可以正常运行nacos 2.4.0吗? Aug 3, 2024
@KomachiSion
Copy link
Collaborator

KomachiSion commented Aug 5, 2024

可以的,如果登陆报错, 可以查看一下#12097 ,更换一下jre的版本。

@KomachiSion KomachiSion added the kind/question Category issues related to questions or problems label Aug 5, 2024
@KomachiSion KomachiSion closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
@KomachiSion KomachiSion added the status/duplicate This issue or pull request already exists label Aug 15, 2024
@guoxiangdaxia
Copy link
Author

我试了新旧不下5个版本,都不能正常解密,最后增加了BC
// 添加 Bouncy Castle 提供者 Security.addProvider(new BouncyCastleProvider()); Mac instance = Mac.getInstance(jcaName, "BC"); instance.init(key);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Category issues related to questions or problems status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants