curl --request GET \
--url https://app.trustivan.com/api/v1/certificates \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/certificates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/certificates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"thresholds": {
"low": 30,
"medium": 14,
"high": 7
},
"certificates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sha256": "<string>",
"gates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repository": "<string>",
"ref": "<string>",
"commit": "<string>",
"run_url": "<string>",
"failed": true,
"created_at": "2023-11-07T05:31:56Z"
}
],
"subject": "<string>",
"common_name": "<string>",
"sans": [
"<string>"
],
"issuer": "<string>",
"issuer_common_name": "<string>",
"issuer_organization": "<string>",
"serial": "<string>",
"key_type": "RSA",
"key_bits": 123,
"signature_algorithm": "SHA256-RSA",
"not_before": "2023-11-07T05:31:56Z",
"not_after": "2023-11-07T05:31:56Z",
"self_signed": true,
"chain": [
{}
],
"first_seen_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z",
"endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"host": "<string>",
"port": 123,
"source": "manual",
"source_ref": "<string>",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problems": [
"<string>"
],
"last_checked_at": "2023-11-07T05:31:56Z"
}
],
"cloud": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "acm",
"resource_id": "<string>",
"name": "<string>",
"region": "<string>",
"account_ref": "aws:123456789012",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"in_use": true,
"problems": [
"<string>"
],
"last_seen_at": "2023-11-07T05:31:56Z"
}
],
"pqc": {
"version": "pqc-1",
"score": 50,
"band": "now",
"reasons": [
"<string>"
],
"replace_by": "<string>"
}
}
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List certificates from TLS endpoints and cloud
Every certificate an endpoint presented at its last successful check,
and every certificate a connected cloud account’s certificate service
holds (AWS Certificate Manager, Azure Key Vault, Google Certificate
Manager and Compute SSL certificates, read at each collection), soonest
expiry first, at most 1,000, each with the endpoints serving it and the
services holding it. Status is judged against the organization’s
lowest expiry threshold (30 days by default): expired, expiring
(expires within it) or valid. source keeps the certificates with at
least one endpoint or cloud service of that source. q matches the
common name, a SAN, the issuer, an endpoint’s host or a cloud
certificate’s name. Each certificate carries its post-quantum readiness
(pqc, formula pqc-1), and pqc keeps the certificates in one band.
Certificates seen only in Certificate Transparency logs are listed by
GET /certificates/ct. Requires assets:read.
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/certificates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/certificates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"thresholds": {
"low": 30,
"medium": 14,
"high": 7
},
"certificates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sha256": "<string>",
"gates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repository": "<string>",
"ref": "<string>",
"commit": "<string>",
"run_url": "<string>",
"failed": true,
"created_at": "2023-11-07T05:31:56Z"
}
],
"subject": "<string>",
"common_name": "<string>",
"sans": [
"<string>"
],
"issuer": "<string>",
"issuer_common_name": "<string>",
"issuer_organization": "<string>",
"serial": "<string>",
"key_type": "RSA",
"key_bits": 123,
"signature_algorithm": "SHA256-RSA",
"not_before": "2023-11-07T05:31:56Z",
"not_after": "2023-11-07T05:31:56Z",
"self_signed": true,
"chain": [
{}
],
"first_seen_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z",
"endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"host": "<string>",
"port": 123,
"source": "manual",
"source_ref": "<string>",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problems": [
"<string>"
],
"last_checked_at": "2023-11-07T05:31:56Z"
}
],
"cloud": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "acm",
"resource_id": "<string>",
"name": "<string>",
"region": "<string>",
"account_ref": "aws:123456789012",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"in_use": true,
"problems": [
"<string>"
],
"last_seen_at": "2023-11-07T05:31:56Z"
}
],
"pqc": {
"version": "pqc-1",
"score": 50,
"band": "now",
"reasons": [
"<string>"
],
"replace_by": "<string>"
}
}
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}