我正在尝试将文件上传到ASM拓扑中的文件观察者。但是当httpclient正在执行时,它会给出这个错误。以下是完整的错误:- java.lang.IllegalStateException: Failed to execute ApplicationRunner
at org.springframework.boot.SpringApplication.callRunner
Certificate for <localhost> doesn't match any of the subject alternative names: [xxxxxxx.xxx.xxxxxx.xxx]我做过的事情:
I以各种方式手动创建/导入密钥/证书。I使用keytool中的-ext将dns地址和本地主机添加到SAN。I还使用 java文件安装证书。I将主机
我有一个带有自签名证书的服务器。我已经在我的电脑上用keytool导入了它,并使用编译参数。javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
那么这两个代码片段之间的主要区别是什么呢