Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

daggerok/spring-boot-ssl

Open more actions menu

Repository files navigation

spring-boot-ssl build

This project contains simple spring-boot https example

gradle build bootRun
open https://localhost:8443/

using curl:

curl -k https://localhost:8443

using docker

docker build -t app .
docker run --rm -d -p 443:8443 --name=app app 
curl -k https://localhost/health
docker rm -f -v app

using docker-compose

docker-compose up --build -d 
curl -k https://localhost/health
docker-compose down -v

not worked shit...

keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore build/keystore.p12 -validity 3650
    use password: password

openssl pkcs12 -in build/keystore.p12 -out build/file.key -nocerts -nodes
openssl pkcs12 -export -in "build/keystore.p12" -out "build/keystore.pem" -passin pass:password

openssl pkcs12 -in build/keystore.p12 -out build/keystore.crt.pem -clcerts -nokeys
openssl pkcs12 -in build/keystore.p12 -out build/keystore.key.pem -nocerts -nodes
openssl pkcs12 -in build/keystore.p12 -out build/keystore.pem

# old - not works
keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore build/keystore.p12 -validity 3650
    use password: password
curl -k --cert build/keystore.p12:password https://localhost:8443

About

This project contains simple spring-boot https example

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.