https://github.com/pmlopes/webauthn-wip
https://github.com/pmlopes/webauthn-wip
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmlopes/webauthn-wip
- Owner: pmlopes
- Created: 2019-08-19T14:58:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T03:29:13.000Z (over 3 years ago)
- Last Synced: 2025-04-07T15:14:21.342Z (about 1 year ago)
- Language: JavaScript
- Size: 6.76 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebAuthN Vert.x Demo
This is a small PoC for WebAuthN vert.x application.
All users are ephemeral as the data is stored in memory in the class `InMemoryStore`.
# Development
To test on a local machine there is no need to use SSL, however to connect to the app from a different machine/device the browser credentials API requires an SSL certificate.
To create a self signed key for your IP address do the following:
```
# replace the CN with your own IP address (other than localhost) with suffix .xip.io
keytool -genkeypair -alias rsakey -keyalg rsa -storepass passphrase -keystore mytestkeys.jks -storetype JKS -dname "CN=192.168.178.74.xip.io,O=Vert.x Development"
# convert to PKCS#12 format for compatibility reasons
keytool -importkeystore -srckeystore mytestkeys.jks -destkeystore mytestkeys.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 so it will cause warnings all over, if you want to test it fully you need a verified certificate perhaps using:
https://letsencrypt.org .