Skip to content

Configuring UnpublishExpiredJob

Endi S. Dewata edited this page Sep 26, 2022 · 2 revisions

Plugin Configuration

$ pki-server ca-config-set jobsScheduler.impl.UnpublishExpiredJob.class com.netscape.cms.jobs.UnpublishExpiredJob

Job Configuration

To configure unpublish expired certificates job:

$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.enabled true
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.cron "0 0 * * 6"
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.pluginName UnpublishExpiredJob
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.summary.enabled true
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.summary.emailSubject "Expired Certs Unpublished Summary"
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.summary.emailTemplate /var/lib/pki/pki-tomcat/ca/emails/euJob1.html
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.summary.itemTemplate /var/lib/pki/pki-tomcat/ca/emails/euJob1Item.html
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.summary.recipientEmail admin@example.com
$ pki-server ca-config-set jobsScheduler.job.unpublishExpiredCerts.summary.senderEmail admin@example.com

Email Templates

Clone this wiki locally