Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.13 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.13 KB

[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.