IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

Automating certificate renewals

  • 1.  Automating certificate renewals

    Posted 04/23/26 03:18 AM

    Hi,

    Has anyone successfully automated the renewal of publicly signed certificates on IBM i? Either with letsencrypt or commercial signers. Using native Apache instances and DCM.

    I see some efforts on the RSE APIs and a seemingly abandoned DCM project at github

    Me and others have posted ideas about natively supporting the ACME protocol - but maybe someone has found another way?

    IBM Ideas

    IBM Ideas (now merged)

     3 years from now, maximum certificate lifespan of publicly signed certificates will be 47 days.



    ------------------------------
    Hans Bornich
    ------------------------------


  • 2.  RE: Automating certificate renewals

    Posted 04/23/26 08:35 AM

    I'll vote for any native process.  Currently, we update 43 customer servers (just did if a few weeks ago) with a new certificate for our application.  Once a year was workable.

    Every 47 days in three years is impossible.

    I looked at that DCM Github repo and tried it, but didn't have success and had to give up at the time.

    Scott A. Schollenberger



    ------------------------------
    Scott Schollenberger
    ------------------------------



  • 3.  RE: Automating certificate renewals

    Posted 04/23/26 09:12 AM

    We should be coming up pretty soon on TR announcements.

    Many people have raised this issue.

    As Douglas Adams so famously wrote, "Don't Panic!"

    Let's see if there is anything interesting in the next TR.

    Are you going to POWERUp 2026 in New Orleans next week?

    You can corner Tim Rowe and ask him!



    ------------------------------
    Jack Woehr
    Senior Consultant
    Seiden Group LLC
    Beulah CO
    3038478442
    ------------------------------



  • 4.  RE: Automating certificate renewals

    Posted 04/24/26 01:50 AM

    I'll also vote for a native, IBM delivered solution.

    Terry Bartlett posted this approx. 6 month back: https://community.ibm.com/community/user/discussion/lets-encrypt-certficate-automation
    It is for Lets Encrypt and using an other approach than DCM-tools, while DCM-tools use certbot, RitFori is using the acme.sh.

    I have not tried it as we do not use Let Encrypt certificate.

    If anyone give it a go, please make a comment.



    ------------------------------
    Krister Karlsson
    IBM i System Administrator
    Crosskey
    Stockholm
    ------------------------------



  • 5.  RE: Automating certificate renewals

    Posted 20 days ago

    So the new TRs were finally announced - nothing at all on ACME or certificate renewal automation in the announcement letters. 

    Was anything said in Lyon on this topic? Unfortunately I couldn't make it.



    ------------------------------
    Hans Bornich
    ------------------------------



  • 6.  RE: Automating certificate renewals

    Posted 20 days ago

    It was mentioned but no commitments or direction was forthcoming.  I think it will be something the community has to develop on its own. 



    ------------------------------
    Christopher Hird
    ------------------------------



  • 7.  RE: Automating certificate renewals

    Posted 19 days ago

    RITFORI is on Github for the community.  It creates and renews Let's Encrypt certificates easily.  It works on V7.4 to V7.6.  It will also assign an Application to the certificate, soon to be multiple applications.  After setup the Renew process can be automated using Job Scheduler.  The certificate is stored in the DCM and a JKS (keystore) along with the relevant CAs.

    It uses DNS-01 domain verification using an API in acme.sh.  There is a list of over 200 domain suppliers who have an API (each one works differently).  Please request your vendor as an Issue on RITFORI in github, and it will be added.

    If you need help with installing or running it, you can find me on Linked-In using "terry bartlett ibm i".



    ------------------------------
    Terry Bartlett
    ------------------------------



  • 8.  RE: Automating certificate renewals

    Posted 04/30/26 12:36 PM

    We have just gone through a similar exercise with a client who is using GoDaddy, they tried to push a 12 year certificate deal with the 47 day renewal as a reason! We are looking for a solution to fix this for the client, I have also sent a note out to Tim asking for information but not heard back.  I have looked at both certbot and acme.sh, both would need some effort to include the goDaddy to IBM i option (I am sure others will need to be added). I also found the following, which seems to indicate adding certificates to DCM through the web interface will be possible (says new so not sure if this is part of a TR I have not looked at yet?).

    https://www.ibm.com/support/pages/new-rest-apis-manage-digital-certificates

    We have a monitoring solution that checks for certificate expiry, we would like to build something that can be triggered from this to go out and pull down and install the certificates. Also trying to figure out how to implement the DNS-01 challenge as that seems to be the way to go (lots of information about setting up dummy DNS locally that will skip around needing to update the actual DNS??).  

    Please share anything you find, I am sure a lot of customers will be facing this problem very shortly and it was a total surprise to us!

    Chris...



    ------------------------------
    Christopher Hird
    ------------------------------



  • 9.  RE: Automating certificate renewals

    Posted 05/07/26 03:40 AM
    Edited by Krister Karlsson 05/07/26 03:57 AM

    The REST API for managing certificates were added i march 2024 to the IBM Remote System Explorer for i (ADMIN5 server), however the DCM REST API is lacking an API to renew certificates.
    Terry Bartletts is actually using the DCM REST API together with acme.sh, so you can have a look in the source code for examples how to use the DCM REST API.
    If I understand the code correctly RitFori stores the certificate to renew in a java keystore instead of DCM.

    Jesse Gorzinskis DCM-tools is using cerbot and the traditional DCM API's and using the QycdRenewCertificate API to renew certificates directly from the DCM.

    So combining the acme.sh with the DCM API's would be a way forward to automate this. 

    Another challenge would be how to handle Certificates for the Integrated Application Server (IAS) and the Integrated Web Services (IWS) as those certificates are not managed from inside DCM. The same goes for the debug service certificate.
    Does anyone know how to assign/change them programmatically?



    ------------------------------
    Krister Karlsson
    IBM i System Administrator
    Crosskey
    Stockholm
    ------------------------------



  • 10.  RE: Automating certificate renewals

    Posted 05/08/26 06:45 AM

    I am currently in the process of testing and changing RITFORI for use in V7.6 and I will attempt to make it a bit easier to use.

    To make it clear RITFORI on Github is a tool which attempts to automate the full TLS certificate process on the IBM i.  It puts the certificate and the Let's Encrypt CAs into both a JKS (Java Key Store) and the DCM if required.

    The RSEAPI (ADMIN5) mentioned above requires a full TLS certificate, not a self-signed one, in order to use the DCM APIs.  This chicken and egg makes automation more complicated.  RITFORI sets up a user-id. Then using acme.sh is registers a Let's Encrypt account, creates a TLS certificate and puts in into a JKS.  It uses this certificate for the RSEAPI in order to put the same certificate into the DCM.  It repeats the JKS and DCM process for renewing the certificate.

    There are 2 manual steps to be done once, at the moment.  The JKS needs to be added to the ADMIN5 HTTP server and any bespoke DCM applications to be attached to a certficate have to be added manually.



    ------------------------------
    Terry Bartlett
    ------------------------------



  • 11.  RE: Automating certificate renewals

    Posted 05/19/26 09:06 AM

    Another problem comes with wild card certificates, from what I read these cannot be automated with acme or certbot? Trying to figure out how to set up the DNS-01 challenge when the DNS could be outside of the providers domain may be a block? When we did the renewal with GoDaddy it was very simple because GoDaddy also had access to the DNS servers to add the TXT entry. Still trying to figure a lot of this stuff out, will be at the 2026 Congress in Lyon so hoping to meet up with Tim and the IBM team there to get some feedback.



    ------------------------------
    Christopher Hird
    ------------------------------



  • 12.  RE: Automating certificate renewals

    Posted 05/19/26 11:30 AM

    RITFORI on Github uses Acme which uses a DNS API to automatically add and remove the DNS-01 Challenge TXT record using an API token in the case from Cloudflare. There are nearly 200 DNS providers which Acme supports and have documented, GoDaddy is one of them with limitations. Go to Github https://github.com/acmesh-official/acme.sh/wiki/dnsapi  GoDaddy is number 4, details are further down the page.

    Each provider has a different set of requirements for their API. I started with Cloudflare because I had a domain registered with them. Other providers can be added to RITFORI. It may be good to know that Cloudflare will let you use their DNS without charge https://developers.cloudflare.com/dns/faq/  I recommend reading all the details before going for this option.  This means you can use a provider that does not have a DNS01 API.

    Acme will also do wild card certificates. I have not yet tested this option.  It is still early days.

    I will be at Lyon too.



    ------------------------------
    Terry Bartlett
    ------------------------------



  • 13.  RE: Automating certificate renewals

    Posted 05/19/26 11:55 AM

    Hope to meet up with you Terry.  I just went through the GoDaddy documentation, either they have dropped the DNS API's or merged them into the Certificate API's? Docs are not that clear so will need to open a support ticket. The client has wildcard certificates so need to go the extra mile as well which means DNS-01 verification will be needed! Looked at using the acme script on Linux and connecting through to the IBM i with the RSE API's (I also want to look at the DCM API's to see if we can place the cert on the IFS and then import via those API's).  I am hoping IBM has something up their sleeve they can share to make this easier. 



    ------------------------------
    Christopher Hird
    ------------------------------



  • 14.  RE: Automating certificate renewals

    Posted 05/19/26 12:05 PM

    Looks like this is only for resellers! Unless they purchase a Domain Club Subscription???

    4. Use GoDaddy.com domain API to automatically issue cert

    Only possible if you have more than 10 domains or a Discount Domain Club subscription! See Reddit



    ------------------------------
    Christopher Hird
    ------------------------------