> Source: [sk104400](https://support.checkpoint.com/results/sk/sk104400)

# sk104400 - How to check VPN certificate expiration date from command line on Security Management

| Property | Value |
|----------|-------|
| Solution ID | sk104400 |
| Date Created | 2015-01-23 |
| Last Modified | 2022-01-02 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server, Multi-Domain Security Management Server |
| Versions | R81.10 (EOS), R81 (EOS), R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS) |
| OS | Gaia |

## Solution

The dates of the VPN certificates on the Security Management can be verified with the *cpca_client lscert* command in the following way (the following example is done for a CMA called Example_Management Server on an MDS):  

--------------------  
*\[Expert@provider:0\]# mdsenv Example_Management_Server*   
*\[Expert@provider:0\]# cpca_client lscert -stat Valid -kind IKE*   
*Operation succeeded. rc=0.*   
*1 certs found.*

*Subject = CN=cpmodule VPN Certificate,O=Example_Management_Server.checkpoint.com.d2hitj*   
*Status = Valid Kind = IKE Serial = 91912 DP = 1*   
*Not_Before: Wed Jan 14 14:19:02 2015 Not_After: Tue Jan 14 14:19:02 2020*   
--------------------

The expiration date is shown as '*Not_After: Tue Jan 14 14:19:02 2020*' for this VPN Certificate.

**Note: t** **his command output has only Internal CA certificates, external CA certificates will not be shown.**

<br />

**Related solutions:**

* [sk101049 - Expired certificates issues in the Management Database](http://supportcontent.checkpoint.com/solutions?id=sk101049)
* [sk31539 - Upon installing Security Policy, Security Management server warns about expiring Security Gateway certificates](http://supportcontent.checkpoint.com/solutions?id=sk31539)
* [sk102092 - Certificates expiration alert](http://supportcontent.checkpoint.com/solutions?id=sk102092)

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
