最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

spring - Is there a way to generate a TLS cert in memory at startup and have SpringBoot use that for HTTPS? - Stack Overflow

programmeradmin3浏览0评论

I'm trying to secure a SpringBoot application behind HTTPS (to have https-to-the-container with a self-signed cert), and it's been requested that we find a way to do this that doesn't leave the private key on the filesystem.

I've found pretty simple ways to generate an SSL cert and use it at server startup for Express and Golang, but I'm struggling with SpringBoot — everything I find involves using openssl or keytool and then configuring SpringBoot to use the files generated from that.

How would I go about doing this from inside the app itself during the startup process?

发布评论

评论列表(0)

  1. 暂无评论