{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1
Question by Shivakumar Sudi · Feb 20, 2020 at 07:02 AM · 213 Views certificateskeystoretruststoressl keystore

How to set up TLS/SSL Certificate Expiry alert on Apigee Edge

Hi,

Can someone help me with setting up TLS certificate expiry notification on Apigee Edge. It should trigger emails when the certificates are about expire. I understand that there is a BETA version to create the Alerts, but do we have any other options to have these expiry alerts?

Thanks and Regards

Shiv

Comment
Add comment Show 3
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jayesh Upadhyay · Feb 24, 2020 at 11:58 AM 0
Link

Hi @Shivakumar Sudi

Other way to check is make a call to management API to inspect certificate expiry time.

You can make following call to Management API to get necessary information.

https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/keystores/%7Bkeystore_name%7D/certs/%7Bcert_name%7D

Above call gives the response which looks like below.

{
  "certInfo": [
    {
      "validFrom": 1573656514000,
      "expiryDate": 1889016514000,
	.....	
    }
  ],
  "certName": "Your Cert Name"
}

Above response contains expiry date in Unix epoch time format.

you can write little app which makes above call and inspect the expiry date. Triggers an email based on your requirement.

See if above approach works for you based on your requirement and constraint within your org.

avatar image Shivakumar Sudi Jayesh Upadhyay · Feb 25, 2020 at 07:28 AM 0
Link

Thanks Jayesh,

Can we use Apigee itself to make these calls? Do you think it's a good approach? Also, would it give the portal certificate details as well? Because, under alerts, I couldn't see portal option to set the expiry alert. So wondering if it will cover that as well.

Regards

Shiv

avatar image Jayesh Upadhyay Shivakumar Sudi · Feb 26, 2020 at 08:44 AM 0
Link

Hi @Shivakumar Sudi

Yes you can use Apigee to make this call using Service call out to Management API to fetch necessary information. Based on your requirement and what's available to achieve that I would say this is acceptable approach. This will only validate certificate available on Edge environment TLS Keystores. If Portal cert is not in your TLS keystore you can't trigger that automatically. One approach to check Dev portal certificate can be, store your Dev portal cert as an encrypted KVM. you can fetch that cert and fetch certificate attributes using Javascript or java call out which will use openssl capabilities to achieve that. See if that's good enough as your solution.

Regards

Jayesh


Close

1 Answer

  • Sort: 
avatar image
0

Answer by Cleison Ferreira de Meo · Feb 24, 2020 at 10:20 AM

Hi, I never saw this option. What I know that you check a option when you are creating a new certificate to define "Allow expired certificate".

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Shivakumar Sudi · Feb 25, 2020 at 07:29 AM 0
Link

There is an option in alerts to create an alert for TLS expiry. We can set it. But I am not sure how reliable it is and I couldn't see the option to set it for portal certificates.

Follow this Question

Answers Answers and Comments

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

API that exports entire keystore from the Apigee 0 Answers

Mutual TLS between client to edge and edge to backend 1 Answer

Error adding SSLInfo after creating truststore 2 Answers

Java Callout - Read external files in Java 1 Answer

Http 401 error when trying to upload cert to truststore 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges