You can use this code in your project by implementing the org.elytron.certificate.management.x500.cert.acme.AcmeClientSpi class. You can read this blog post about it https://wildfly-security.github.io/wildfly-elytron/blog/elytron-acme-client-implementation/ .