Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add certs health check endpoint (LG-3929) #181

Merged
merged 4 commits into from
Dec 16, 2020

Conversation

zachmargolis
Copy link
Contributor

Example curl:

curl -v -k "https://localhost:8443/api/health/certs" --silent | jq
....
< HTTP/1.1 500 Internal Server Error
....
{
  "healthy": false,
  "info": {
    "deadline": "2021-01-15T18:07:58.244Z",
    "expiring": [
      {
        "expiration": "2020-12-15T21:10:27.000Z",
        "subject": "/C=US/O=Entrust/OU=Certification Authorities/OU=Entrust Managed Services Root CA",
        "issuer": "/C=US/O=U.S. Government/OU=FPKI/CN=Federal Common Policy CA",
        "key_id": "9C:62:66:26:9D:71:B6:A7:75:53:64:E1:AC:B1:C7:25:3C:44:5D:0D"
      },
      {
        "expiration": "2021-01-12T00:52:59.000Z",
        "subject": "/C=US/O=ORC PKI/CN=ORC SSP 3",
        "issuer": "/C=US/O=U.S. Government/OU=FPKI/CN=Federal Common Policy CA",
        "key_id": "6A:88:6D:52:FC:B1:44:9E:30:AE:33:18:4D:C0:39:9D:96:6B:24:B0"
      }
    ]
  }
}

Copy link
Contributor

@mitchellhenke mitchellhenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 👍🏼

@zachmargolis zachmargolis merged commit d766830 into master Dec 16, 2020
@zachmargolis zachmargolis deleted the margolis-cert-health-endpoint branch December 16, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants