https://github.com/pmlopes/zero-trust
https://github.com/pmlopes/zero-trust
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmlopes/zero-trust
- Owner: pmlopes
- Created: 2022-11-03T15:05:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T14:01:14.000Z (over 3 years ago)
- Last Synced: 2025-02-25T17:36:56.017Z (over 1 year ago)
- Language: Java
- Size: 2.25 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vert.x Zero Trust Demo
This is a small PoC for a vert.x Zero Trust Architecture Application.
# Development
To test on a local machine there we will need SSL (remember, don't trust, always check).
To create a self-signed key for your IP address do the following:
```sh
# replace the CN with your own IP address with suffix .nip.io
keytool \
-genkeypair \
-alias rsakey \
-keyalg rsa \
-keystore https.jks \
-storetype JKS -dname "CN=127.0.0.1.nip.io,O=Vert.x HTTPS"
keytool \
-genkeypair \
-alias rsakey \
-keyalg rsa \
-keystore eventbus.jks \
-storetype JKS -dname "CN=127.0.0.1.nip.io,O=Vert.x EventBus"
# convert to PKCS#12 format for compatibility reasons (you'll be prompted
# twice for the secret)
keytool \
-importkeystore \
-srckeystore https.jks \
-destkeystore https.jks \
-deststoretype pkcs12
keytool \
-importkeystore \
-srckeystore eventbus.jks \
-destkeystore eventbus.jks \
-deststoretype pkcs12
# your new ssl certificate is on the file `mytestkeys.jks`
```
Update the `MainVerticle` to use this new certificate store.
Remember this is a self-signed certificate. It will cause warnings all over, if you want to test it fully you need a
verified certificate perhaps using: https://letsencrypt.org .