List the TLS endpoints checked
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/endpoints \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/endpoints"
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/endpoints', 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/endpoints"
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))
}{
"endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"host": "<string>",
"port": 123,
"protocol": "",
"source": "manual",
"source_ref": "<string>",
"problems": [
"<string>"
],
"legacy_tls": true,
"cipher_grade": "",
"cipher_suites": [
{
"version": "TLS 1.2",
"suites": [
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
],
"incomplete": true
}
],
"ssh_host_keys": [
{
"type": "ssh-ed25519",
"bits": 123,
"sha256": "SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s"
}
],
"caa_found": true,
"last_checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"certificate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"limit": 500
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List the TLS endpoints checked
Endpoints added by hand (manual), the organization’s https DAST
targets (dast), the TLS hosts of connected clusters’ Ingresses
(kubernetes; the Ingress’s TLS Secret is named, never read) and what
a network range sweep found (network). Each is re-checked daily; an
endpoint on port 22 (or with protocol ssh) is an SSH server, judged on
its algorithm offer and host keys and with no certificate. Requires
assets:read.
GET
/
certificates
/
endpoints
List the TLS endpoints checked
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/endpoints \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/endpoints"
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/endpoints', 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/endpoints"
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))
}{
"endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"host": "<string>",
"port": 123,
"protocol": "",
"source": "manual",
"source_ref": "<string>",
"problems": [
"<string>"
],
"legacy_tls": true,
"cipher_grade": "",
"cipher_suites": [
{
"version": "TLS 1.2",
"suites": [
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
],
"incomplete": true
}
],
"ssh_host_keys": [
{
"type": "ssh-ed25519",
"bits": 123,
"sha256": "SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s"
}
],
"caa_found": true,
"last_checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"certificate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"limit": 500
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}