Skip to content

Instantly share code, notes, and snippets.

View StefanOltmann's full-sized avatar

Stefan Oltmann StefanOltmann

View GitHub Profile
@StefanOltmann
StefanOltmann / client-certificate-authentication.md
Created November 13, 2020 22:22 — forked from jankronquist/client-certificate-authentication.md
Java certificate authentication for both server and client using shared trusted CA.

Certificates

CA and trust keystore

keytool -genkeypair -keyalg RSA -keysize 2048 -validity 365 -alias ca -dname "CN=ca,O=HMS,S=SE" -keystore ca.jks -storepass password
keytool -exportcert -rfc -alias ca -keystore ca.jks -storepass password > ca.pem
cat ca.pem | keytool -importcert -alias ca -noprompt -keystore trust.jks -storepass password

server cert

name: GraalVM Native Image build
on:
push:
branches: [ '*' ]
tags: [ '*' ]
jobs:
buildOnWindows:
runs-on: windows-latest