FIDO2 Demo Server for Node.js using @s1r-J/fido2server-lib npm module.
Assume you have already installed Node.js.
- Clone this repository.
$ git clone https://github.com/s1r-J/fido2-demoserver.git
-
To use HTTPS, install mkcert and create private key and certificate. If you have HTTPS development environment, it can be used.
- If you don't have, following this entry: Why and How to Use HTTPS in Your Local Development Environment
-
Store private key PEM(default
localhost-key.pem
) and certificate PEM(defaultlocalhost.pem
) inssl
folder. -
Copy from
.env.sample
file to.env
file. -
npm install
npm start
- Wait a moment, access
https://localhost:3000
in web browser.
In this condition, you can also use self-conformance test tools.
Note: Windows Hello maybe not works properly using https://localhost:3000
. Use other actual domain.
Environment variable is in .env
file.
If you want to change hostname or port, change HOSTNAME
or PORT
in .env
file.
In that state, for passing self-conformance test replace metadata service data file.
To get metadata service data, using npm run mds
.
For MDS version 2 fidomds/mds2-<random value>.json
is created
and for MDS version3 fidomds/mds3-<random value>.json
.