Estonian e-Residency

Using e-Residency in your web application

e-Residency can be easily integrated into your desktop web application in a few hours. It uses client-side SSL certificates that have been a cryptographic standard for nearly 20 years.

  1. Order an SSL certificate from a certificate authority like StartSSL or SK.
  2. Download root certificates.
  3. Configure your web server to use SSL and accept client-side certificates.
  4. Check certificate status using a certificate revocation list (CRL) or an online certificate status protocol (OSCP).
  5. Write your web application to parse the first name, last name, and ID code of the user.

Sample application PHP code

<?php

// Get variables

$certificate = getenv(“SSL_CLIENT_S_DN”);

$status = getenv(“SSL_CLIENT_VERIFY”);

// Check for success

if($status != “SUCCESS” || substr($certificate, 0, 33) != “/C=EE/O=ESTEID/OU=authentication/”) exit();

$id = explode(“/”, $certificate, 8);

// Print results

echo “First name: ” . explode(“=”, $id[5], 2)[1] . “\n”;

echo “Last name: ” . explode(“=”, $id[6], 2)[1] . “\n”;

echo “ID code: ” . explode(“=”, $id[7], 2)[1] . “\n”;

?>


Proper API for electronic signing, signature validation and authentication

SignWise Services is advanced electronic signing, user authentication, document generation, signature validation and document delivery solution for enterprises. The solution is fully compatible with eIDAS.

WEB: www.signwise.org

API description: http://www.signwise.org/integration-methods