-
Notifications
You must be signed in to change notification settings - Fork 46
Using test TSL lists
In testing environment, it is possible to use test TSL lists for creating and validating signatures with test certificates.
- Master test TSL list that points to the national test TSL can be found at https://open-eid.github.io/test-TL/tl-mp-test-EE.xml
- National test TSL list that contains SK (Estonian CA) test certificates and other data is available at https://open-eid.github.io/test-TL/EE_T.xml. National TSL URL is registered in master TSL, the library derives the URL value automatically from the master list.
- Master test TSL signing certificate, needed for validating the list's signature, can be downloaded from https://open-eid.github.io/test-TL/trusted-test-tsl.crt
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.
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
Compile the library with the following parameters:
- Set the TSL_URL cmake compilation parameter value as https://open-eid.github.io/test-TL/tl-mp-test-EE.xml
- Set the TSL_CERTS cmake parameter value according to the trusted-test-tsl.crt certificate's location in your file system.
See http://open-eid.github.io/libdigidocpp/manual.html#CA-settings
Official builds are provided through official distribution point id.ee. If you want support, you need to be using official builds. Contact for assistance by email www.id.ee .
Source code is provided on "as is" terms with no warranty (see license for more information). Do not file Github issues with generic support requests.