ezxmldsig docs

XML Signature · XML Encryption · PHP · Node.js

Signed tokens,
and proof of who signed them.

ezxmldsig creates and verifies XML tokens: user data, timestamped, signed with the key of their sender and, if need be, encrypted for their receiver. A receiver accepts a token only if its certificate descends from the certification authorities it trusts. Use them for single sign-on, or to pass any data whose origin must be proven. Why?

Two libraries, the same tokens

Each library reads the tokens of the other, signed or encrypted, and refuses the same forged tokens with the same errors: a single sign-on can mix applications written in PHP and in Node.js. The tokens follow the W3C standards XML Signature and XML Encryption.

The Node.js library also seals files, from its version 2.0.0, as an experimental feature: detached XAdES signatures in an ASiC-E container, which validators of electronic signatures such as DSS, the validator of the European Commission, accept. The PHP library seals files too, from its version 2.1.0, as an experimental feature: each library verifies the seals of the other.

See them at work

The token lab: its animated illustration of a token verified and accepted, the issuer, and the annotated token with the block SignedInfo selected

Token lab

Create a token, read each block of its signature, follow the checks of the receiver one by one, and replay the attacks the library refuses.

The single sign-on demo: its home page, with its animated illustration of the flow, and the trace of a login on MAIL then of CRM entered without a new login

Single sign-on

Three sites on three host names: an identity provider, which alone knows the passwords, and two applications that open on its signed tokens, one login for both.