Key upload automation

we would like to automate our certificate process as much as possible.
For example, there are scripts to create the CSRs and to create PKCS#12 files after the certificates from the CA have arrived.
Is there a way to import the PKCS#12 files without using the web page?
I know, there’s no web service which can be used, but maybe there’s some other way to get the p12 files imported automatically. (Of course, the passwords of the p12 files are known and can be provided to some script or routine for the import…)
Best regards

There is a command-line tool which can be used to import P12 files

java -cp '/usr/share/djigzo/lib/*'

We are working on a major new release which will have a full-fledged REST API but it will take some time before the new version is ready.