Skip to content

Experimental Node.js Danish NemId integration for authenticating a user.

License

Notifications You must be signed in to change notification settings

daliborgogic/nemid

Repository files navigation

[POC] nemid

Download the file DanID Test (gyldig) under Virksomhedscertifikater

You got your p12 certificate now generate *.pem files, use following commands:

Convert it to public.pem, use the password Test1234.

# public
openssl pkcs12 \
  -in certs/VOCES_gyldig.p12 \
  -out certs/public.pem \
  -clcerts \
  -nokeys

NOTE: Remove the initial lines with Bag Attributes if present.

Only the -----BEGIN CERTIFICATE-----, the base64 encoded certificate and -----END CERTIFICATE----- are relevant.

# private
openssl pkcs12 \
  -in certs/VOCES_gyldig.p12 \
  -clcerts \
  -out certs/private.pem

Environment Variables

$ cat > .env << EOL
export PASS_PHRASE=
export ORIGIN=
EOL

NemID (DK) Test Users

There are two available types of NemID test users.

About

Experimental Node.js Danish NemId integration for authenticating a user.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published