Automatic Certificate Renewal
When the system receives a certificate, a task for renewal is scheduled based on the life span of the certificate. There are several parameters that you can configure and it is important to understand the process to understand the effect that these properties have.
-
The system attempts to renew the certificate before the existing certificafte expires. For this, it calculates the renewal window. The renewal window is the period of time, for example, six hours, during which the automatic renewal process regularly runs. The renewal window is calculated as follows:
Calculation Note 
You configure the parameter kymaintegrationservices.certificate.expiry.ratio in the project.properties file of the apiregistryservices module.
By default, the property is set to 6.
- The certificate first attempts to renew the certificate at the start of the renewal window. This is the initial renewal time. The initial renewal time is calculated as follows:
Calculation Note 
This provides the point in time of the first renewal attempt. - Depending on the result one of the following happens:
Renewal Successful Renewal Unsuccessful -
The next initial renewal time is set as described before and the destination target is set to the REGISTERED status.
-
The system logs a warning and schedules another task to rerty the renewal process.
- During the renewal window, the system tries to renew the certificate at regular intervals. The renewal retry interval is calculated as follows:

You override the parameter kymaintegrationservices.certificate_renewal_retry_ratio in the local.properties file.
By default, the property is set to 10.
- If the retry fails, the same interval is used to schedule the next retry.
- When the existing certificate has expired, the system stops retrying to renew it, logs an error, and sets the destination target to the ERROR status.
-