ansible-for-i icon indicating copy to clipboard operation
ansible-for-i copied to clipboard

Certificate upload using Ansible

Open spirjade opened this issue 2 years ago • 3 comments

Hello,

Do you anyway to upload certificate on IBMi using ansible?

spirjade avatar Jul 08 '22 03:07 spirjade

Do you mean upload a certificate file to an IFS directory? I think both Ansible Core itself and IBMi collection have modules to support that. If you mean upload certificate or create the certificate by DCM of IBMi, I don't think we support that now.

changlexc avatar Jul 08 '22 03:07 changlexc

Thanks for your reply.

Today we are importing and assigning certificate using DCM. We want to automate this part. Do we have any ansible module on IBMi which can automate this importing/assigning of certificate by DCM.

spirjade avatar Jul 15 '22 10:07 spirjade

We don't have a module to support DCM stuff now. However, you may create a few playbooks and leverage some DCM tools. For example, there is non-official tool https://github.com/ThePrez/DCM-tools. You may create some Ansible playbooks to setup the tool on your IBM i systems, then call the commands provided by the tool to import/export certificate to/from DCM. Again, the tool is currently still under development and without complete testing. Proceed at your own risk.

LiJunBJZhu avatar Aug 25 '22 06:08 LiJunBJZhu