On 05-10-17 17:25, Olaf Schwarz via Users wrote:
Hi all,
is there a way to export all "keys" (pgp public keys and S/MIME public
keys) from a ciphermail instance?
So far I found a way to import keys via the backend
(mitm.application.djigzo.tools.CertManager). This is already very helpful.
But I could not find a way to export.
Doing it one by one via the web-interface is not an option. Would need a
solution which can be automated (preferably via a cron job).
I have uploaded a jar file which you can use to export the certificates
and public PGP keys.
The command should be run from the command line of the CipherMail gateway
1) download
wget https://www.ciphermail.com/downloads/other/export-tool.jar
wget https://www.ciphermail.com/downloads/other/export-tool.jar.asc
verify jar
gpg --verify export-tool.jar.asc
2) Exporting certificates
java -cp
export-tool.jar:/usr/share/djigzo/djigzo.jar:/usr/share/djigzo/lib/*
mitm.application.djigzo.tools.CertStore --export-certificates --dir
/home/sa/temp
Note: replace /home/sa/temp with the correct dir to which the exported
certs will be written to
3) Exporting PGP public keys
java -cp
export-tool.jar:/usr/share/djigzo/djigzo.jar:/usr/share/djigzo/lib/*
mitm.application.djigzo.tools.PGPTool --export-public-keys --dir
/home/sa/temp
Note: replace /home/sa/temp with the correct dir to which the exported
PGP key will be written to
The jar is an updated version of the CertStore and PGPTool command. The
upcoming CipherMail release will already have these updates.
Kind regards,
Martijn Brinkers
_______________________________________________
Users mailing list
[email protected]
https://lists.djigzo.com/lists/listinfo/users