spring-boot - Spring Boot SSL - keystore 的文本证书

标签 spring-boot ssl

我为我的 Spring Boot 应用程序订购了 SSL 付费证书。我收到的是一段文字:

-----BEGIN CERTIFICATE-----
MIIEsTCCA5mgA
....
JKAHSD823kjsd
-----END CERTIFICATE-----

我应该用它做什么?所有 Spring Boot SSL 示例都显示使用 keytool 生成的“自签名证书”作为放置在项目类路径中的文件。 如何从我得到的生成 p12 keystore ?

最佳答案

这是一种 pem 格式 (refer this),然后使用 openssl 实用程序 (refer this) 将其转换为您想要的格式

关于spring-boot - Spring Boot SSL - keystore 的文本证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53571098/

相关文章:

java - 有没有办法在 Java 应用程序运行时获取配置文件?

apache - 强制使用主域和 www.但不是子域

JQuery Mobile 导航在 SSL 上损坏

spring - Spring JPA 中连接到两个不同数据库失败

java - Spring批处理JobExecutionListener不起作用

java - HttpMessageNotWritableException : Could not write JSON: Could not initialize proxy AFTER adding data into DB

spring-boot - 我无法在 Spring Boot 中使用 Elasticsearch 实现 Reactive Repository

amazon-web-services - 服务器上的 AWS 负载均衡器、静态 IP 和 SSL 终止(不是负载均衡器)

ssl - 如何使用另一个 jar 中的资源加载 keystore 。

php - 使用 Twitter API 的 SSL 证书错误