Code Monkey home page Code Monkey logo

ssl-demo's Introduction

SSL Demo Application

This is the accompanying project code for the blog post Secure Spring Boot Applications with TLS and HTTP/2 on blog.novatec-gmbh.de.

System Requirements

  • Java 11 SDK
  • Kotlin

Using this demo project

You can use this project

  1. directly without changing anything here. The only thing you have to do is to import the root certificate in your web browser as new authority. The root certificate can be found in setup_ca/ca.pem. After importing this you can start the application and navigate to https://localhost:8443 in your web browser.

  2. or with setting up a new private certificate authority first. Then you have to follow the explanations of the next sections.

Setting up the private CA

To setup the private certificate authority with root certificate and to create the valid server certificate please run the corresponding shell script setup_ca.sh (linux) / setup_ca.cmd (windows) in sub directory setup_ca.

This script creates the required sub directories and performs all the steps using keytool as described in the blog post.

After executing the script you will find the important files here:

  • setup_ca/root-ca: Here you find the root certificate ca.pem that you have to import as new authority in your web browser
  • setup_ca/server: Here you find the key store server.jks containing the root and server certificates. This has to be copied to the directory src/main/resources. The existing key store can be overwritten.

After you have completed all these steps you can start the application and navigate to https://localhost:8443 in your web browser.

ssl-demo's People

Contributors

andifalk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.