Validate Server's Certificate Store

Overview

This filter checks the API Gateway's certificate store for certificates that are due to expire before a specified number of days. This enables you to monitor the certificates that the API Gateway is running with.

For example, you can configure a policy that includes a Validate Server's Certificate Store filter and an Alert filter, which sends an email alert when it finds certificates that are due to expire. You can also configure this policy to run at regular intervals using the policy execution scheduler provided with the API Gateway.

Configuration

Configure the following fields on the Validate API Gateway Certificate Store screen:

Name:

Enter an appropriate name for the filter.

Days before expires:

Enter the number of days before the certificates are due to expire.

Check Server's Certificate Store:

Select whether to check the certificates in the API Gateway's Certificate store. This is selected by default.

Check Server's Java Keystore:

Select whether to check the certificates in the API Gateway's Java Keystore. This is not selected by default. When selected, you must enter the Password for this keystore. The default is password is changeit.

Check Java Keystore:

Select whether to check the certificates in the specified Java Keystore. This is not selected by default. When selected, you must configure the following fields:

Keystore Location Specify the path to this keystore (for example, /home/oracle/osr-client.jks).
Password Enter the password for this keystore.


Deployment Example

The following example shows a Validate Certificates policy that includes a Validate Certificates in API Gateway's Store filter and an Alert filter. This policy sends an email alert when it finds certificates that are due to expire:

Validating Gateway Certificates

Configuring an Email Alert

When this filter is successful, and finds certificates that are due to expire, it generates an expired.certs.summary attribute, which contains a summary of certificates due to expire. You can then use this attribute in the Alert filter to send an email alert to the API Gateway administrators, as shown in the following example:

Configuring an Alert Message

You must also select a pre-configured email alert destination on the Destination tab (for example, Email API Gateway Administrators). For more details on configuring email alert destinations, see the System Alerting topic.

Configuring a Policy Execution Schedule

You can configure this policy to run at regular intervals (for example, once every day) using the policy scheduler provided with the API Gateway. Under the Listeners node, right-click the API Gateway instance node, and select Add policy execution scheduler. The following example runs the policy at 12 noon every day:

Configuring a Policy Schedule

For more details, see the Policy Execution Scheduling topic.

Example Email Alert

An email alert is sent if any certificates that are due to expire are detected. The contents of the email are obtained from the expired.certs.summary message attribute. For example:

Oracle API Gateway running on Roadrunner contains certificates that will expire in 730 days.

2 expired certificates in API Gateway certificate store:

1. Cert details:
Cert issued to: CN=CA
Cert issued by: CN=CA
SHA1 fingerprint: 72:04:35:7C:A1:B1:C2:F5:E2:86:75:C4:83:12:9C:70:A8:D6:21:8E
MD5 fingerprint: 82:23:6F:59:F2:8F:C3:95:56:87:70:B5:51:3F:53:05
Subject Key Identifier (SKI): dfABenFoM0r7iJ3E1ZqU7HmKiyY=
Expires on: 2012-04-20

2. Cert details:
Cert issued to: CN=John Doe
Cert issued by: CN=CA
SHA1 fingerprint: 83:32:EB:3F:9C:15:87:FB:81:E1:D5:AC:CC:35:C3:F8:21:BB:DF:CD
MD5 fingerprint: 48:02:F6:3F:B9:64:EB:DA:DF:CF:F9:82:AC:CC:13:AB
Subject Key Identifier (SKI): HabJNMjAsBAWp4AcCq8yZkTEJKQ=
Expires on: 2012-04-20