backend tool to export keys available?

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).

Any hint/help would be very much appreciated.

Thanks in advance
Olaf

···

--
// Olaf Schwarz <schwarz(a)energy-cert.at>

At the moment there there is no command line tool supporting export.
However adding this functionality is not difficult. I'll see whether I
can make a tool available which allows you to export the PGP public keys
and certificates.

Kind regards,

Martijn Brinkers

···

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).

Any hint/help would be very much appreciated.

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

···

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).

Awesome,
Thank you very much for the very very swift response and help.
I will give it a try within the current week and will let you know if
things worked.

Best regards
Olaf

···

On 06.10.2017 18:10, Martijn Brinkers via Users wrote:

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

Updated current ciphermail install to most recent version and tested
export and import for both (S/MIME and PGP). Worked out very well.

Thanks again Martijn for the very quick response and help.

cheers olaf

···

On 06.10.2017 18:10, Martijn Brinkers via Users wrote:

The jar is an updated version of the CertStore and PGPTool command.
The upcoming CipherMail release will already have these updates.