0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JVM出现ssl问题而无法访问HTTPS

Last updated at Posted at 2021-02-14

概要

本地测试的时候,表題の問題がよく出会った

対応手順

一行解决问题

sudo keytool -importcert -file XXXXXX.crt -alias idet-pkks-sb -keystore /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/lib/security/cacerts -storepass changeit -noprompt

几个注意点:

  • 用的JDK的路径确认清楚,譬如这里我电脑测试用java11.0.8所以是上面的路径
  • permission denied的话, 用sudo
  • キーストアのパスワードを入力してください: changeit
  • 改DockerFile的时候,不想交互可以加上option: -storepass changeit -noprompt

关于怎么下载cert文件

Reference

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?