github: Run charon-tkm tests

Use a Debian-based Docker container to run the unit tests for charon-tkm,
once without and once with TKM running.  The container can also be used
locally to run the tests (see comments in the Dockerfile).
This commit is contained in:
Tobias Brunner
2021-11-29 15:30:43 +01:00
parent 66fd0c4db7
commit e9ba195910
3 changed files with 140 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
openssl genrsa -out key.pem 2048
openssl rsa -in key.pem -outform der -out key.der
openssl req -x509 -nodes -newkey rsa:4096 -keyout cakey.pem -outform der \
-out ca.der -sha256 -subj "/CN=CA" -addext basicConstraints=critical,CA:TRUE
tkm_cfgtool -c /usr/local/share/tkm/tkm.conf -i swanctl.conf \
-t tkm.conf -s /usr/local/share/tkm/tkmconfig.xsd