Web eID: Difference between revisions
WoutSwinkels (talk | contribs) Add a paragraph for Belgian eID cards |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
eThe Web eID project enables usage of European Union electronic identity (eID) smart cards for secure authentication and digital signing of documents on the web using public-key cryptography. | |||
Check [https://web-eid.eu/|web-eid.eu] for more details and an example application. | Check [https://web-eid.eu/|web-eid.eu] for more details and an example application. | ||
| Line 19: | Line 19: | ||
== Firefox == | == Firefox == | ||
If | Firefox requires an additional browser extension for Web eID to work. If Firefox is enabled with <code>programs.firefox.enable = true</code>, this can specified system-wide, as follows... | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix">programs.firefox.nativeMessagingHosts.packages = [ pkgs.web-eid-app ];</syntaxhighlight> | ||
programs.firefox.nativeMessagingHosts.packages = [ pkgs.web-eid-app ]; | |||
...or per user with Home Manager, as follows:<syntaxhighlight lang="nix"> | |||
programs.firefox.nativeMessagingHosts = [ pkgs.web-eid-app ]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
If you're building a | If you're building a Firefox derivation yourself, you can override it with <code>extraNativeMessagingHosts = [ pkgs.web-eid-app ];</code>. | ||
== Google Chrome / Chromium == | == Google Chrome / Chromium == | ||
| Line 108: | Line 110: | ||
''; | ''; | ||
};</syntaxhighlight>This script ensures the required symlink is created at system activation time and remains up to date with the correct Nix store path for <code>eid-mw</code>. | };</syntaxhighlight>This script ensures the required symlink is created at system activation time and remains up to date with the correct Nix store path for <code>eid-mw</code>. | ||
Alternatively, systemd can be used to create the symlink, as such:<syntaxhighlight lang="nix" line="1"> | |||
systemd.tmpfiles.rules = [ | |||
"L+ /usr/lib/x86_64-linux-gnu/libbeidpkcs11.so.0 - - - - ${pkgs.eid-mw}/lib/pkcs11/beidpkcs11.so" | |||
]; | |||
</syntaxhighlight> | |||
[[Category:Hardware]] | [[Category:Hardware]] | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Web Applications]] | [[Category:Web Applications]] | ||