Skip to content

Using test TSL lists

Raul Metsma edited this page Mar 30, 2021 · 5 revisions

In testing environment, it is possible to use test TSL lists for creating and validating signatures with test certificates.

Preconditions

Before using the test TSL:

  • Create an empty file named EE_T.xml in the TSL cache. TSL cache location depends on the operating system:
    • Windows environment: %APPDATA%\digidocpp\tsl
    • Linux environment: $HOME/.digidocpp/tsl
    • OSX environment: ~/Library/Containers/ee.ria.qdigidoc4/Data/Library/Application Support/RIA/qdigidoc4/
  • Download TSL-i signing certificate from https://open-eid.github.io/test-TL/trusted-test-tsl.crt and save it to your file system.

Possibilities for using test TSL

digidoc-tool.exe utility program

Use the --tslcert and --tslurl parameters to determine test TSL and its signing certificate's location.

Opening a container and validating test signatures:

digidoc-tool.exe open --tslurl=https://open-eid.github.io/test-TL/tl-mp-test-EE.xml --tslcert=trusted-test-tsl.crt C:\temp\test.bdoc

Creating and signing a new container with a test signature:

digidoc-tool.exe create --tslurl=https://open-eid.github.io/test-TL/tl-mp-test-EE.xml --tslcert=trusted-test-tsl.crt --file=C:\temp\test.txt C:\temp\test.bdoc

Re-compiling the library

Compile the library with the following parameters:

  1. Set the TSL_URL cmake compilation parameter value as https://open-eid.github.io/test-TL/tl-mp-test-EE.xml
  2. Set the TSL_CERTS cmake parameter value according to the trusted-test-tsl.crt certificate's location in your file system.

Extending configuration class

See http://open-eid.github.io/libdigidocpp/manual.html#CA-settings