Please use only this repository.
This is the source repository for the docker image at https://hub.docker.com/r/swisscomtds/foldersigner-ais/
Digitally sign or timestamp PDF's in a specific folder over Swisscom All-in Signing Service.
It will monitor a folder for new PDF's older than one 1 minute to ensure proper upload/copying. The digitally signed PDF will be put in an output folder with the same name as well as a <.result.txt containting the result of the operation. On success the original file will be removed from the monitored folder.
The source and destination folder can be specified with the Docker Volume parameter -v:
- Source: /opt/work/in
- Destination: /opt/work/in
To start:
$ docker run --name foldersigner-ais -it -d \
-e CUSTOMER_ID="My_Customer_Name" \
-e CUSTOMER_KEY="My_Key_Identity" \
-v "/home/user/mycert.crt":/opt/work/mycert.crt \
-v "/home/user/mycert.key":/opt/work/mycert.key \
-v "/home/user/_in_":/opt/work/in \
-v "home/user/_out_":/opt/work/out \
swisscomtds/foldersigner-ais:latest
optional environment settings:
-e DIGEST_METHOD=SHA256 \
-e SIGNATURE_TYPE=sign \
-e TZ=Europe/Paris \
-e _JAVA_OPTIONS="-Dhttps.proxyHost=myproxy.mycompany.com -Dhttps.proxyPort=8080"
Infos about the -e
settings:
- CUSTOMER_ID: Customer identification towards All-in Signing service (provided by Swisscom)
- CUSTOMER_KEY: Customer signing key (provided by Swisscom)
- DIGEST_METHOD: Digest Method [SHA256 (default), SHA384, SHA512]
- SIGNATURE_TYPE: Signature Type [sign (default), timestamp]
- TZ: Timezone of the docker image [Europe/Paris, ...]
- _JAVA_OPTIONS: Necessary if running behind a corporate proxy.
- Install Docker Toolbox - https://www.docker.com/products/docker-toolbox
- Launch the Docker Quickstart Terminal
- In the Docker Terminal, following commands are useful:
Pull the image:
$ docker pull swisscomtds/foldersigner-ais
Read the actual path (in Windows it is like /c/Users/alice
):
$ pwd
Start the Docker Image:
$ docker run --name foldersigner-ais -it -d \
-e CUSTOMER_ID="My_Customer_Name" \
-e CUSTOMER_KEY="My_Key_Identity" \
-v "/c/Users/alice/mycert.crt":/opt/work/mycert.crt \
-v "/c/Users/alice/mycert.key":/opt/work/mycert.key \
-v "/c/Users/alice/in":/opt/work/in \
-v "/c/Users/alice/out":/opt/work/out \
swisscomtds/foldersigner-ais:latest
Other:
$ docker images
$ docker ps -a
$ docker stop <container>
$ docker kill <container>
$ docker rm <container>
$ docker logs foldersigner-ais