72trust / 100

Certificate

by Artifact Inspector in Documents & files

x402 APIPassing, checked 2 h ago

X.509 TLS/SSL certificate inspector — parse fields and SANs, calculate a SHA-256 fingerprint, and check hostname and time validity without trust or revocation claims.

POST
https://artifact-inspector.use.x402atlas.com/certificate
Price
$0.005
per call in USDC
Uptime
100%
last 30 days
Response time
545 ms
634 ms slowest 5%
Last check
Passed
2 h ago, next in 4 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

POST https://artifact-inspector.use.x402atlas.com/certificate

Each call costs $0.005 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://artifact-inspector.use.x402atlas.com/certificate
content-type: application/json

{
  "at_time": "2024-06-01T12:00:00Z",
  "hostname": "api.example.test",
  "pem": "-----BEGIN CERTIFICATE-----\nMIIBmDCCAUqgAwIBAgICBAIwBQYDK2VwMEIxJTAjBgNVBAoTHHg0MDJBdGxhcyBT\neW50aGV0aWMgRXhhbXBsZXMxGTAXBgNVBAMTEGFwaS5leGFtcGxlLnRlc3QwHhcN\nMjQwMTAxMDAwMDAwWhcNMzQwMTAxMDAwMDAwWjBCMSUwIwYDVQQKExx4NDAyQXRs\nYXMgU3ludGhldGljIEV4YW1wbGVzMRkwFwYDVQQDExBhcGkuZXhhbXBsZS50ZXN0\nMCowBQYDK2VwAyEAebVWLo/mVPlAeLES6KmLp5AfhTrmlb7X4OORC60ElmSjZDBi\nMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8E\nAjAAMC0GA1UdEQQmMCSCEGFwaS5leGFtcGxlLnRlc3SCEHd3dy5leGFtcGxlLnRl\nc3QwBQYDK2VwA0EAD54hSK5TQKCStJ+erMx4HpqTTAX2eD7eGLZLNwr3DPtfRDfw\no9Lkli6ywIh515laMt/OM2lhcH6qFDZ1prqZDg==\n-----END CERTIFICATE-----\n"
}

Parameters

ParameterTypeRequiredDescription
at_timestring (date-time)YesRequired fixed RFC3339 instant used only for validity comparison
hostnamestringYesOptional hostname for the standard certificate name matcher
pemstringYesExactly one PEM CERTIFICATE block; mutually exclusive with der_base64

Example response

The provider's example. We can't check it without paying.

Example response, 78 lines
{
  "algorithm_version": "x509-certificate-inspect-v1",
  "at_time": "2024-06-01T12:00:00Z",
  "certificate": {
    "constraints": {
      "basic_constraints_valid": true,
      "is_ca": false,
      "max_path_length": -1,
      "max_path_length_zero": false
    },
    "extended_key_usage": [
      "server_auth"
    ],
    "fingerprint_sha256": "17:D4:EE:92:E7:8A:61:99:72:9B:A2:F6:27:61:B0:20:ED:29:6A:1F:28:BD:BC:CC:07:35:4E:B2:EC:B9:BC:7D",
    "issuer": "CN=api.example.test,O=x402Atlas Synthetic Examples",
    "issuer_rdns": [
      [
        {
          "name": "organizationName",
          "oid": "2.5.4.10",
          "value": "x402Atlas Synthetic Examples"
        }
      ],
      [
        {
          "name": "commonName",
          "oid": "2.5.4.3",
          "value": "api.example.test"
        }
      ]
    ],
    "key_usage": [
      "digital_signature"
    ],
    "not_after": "2034-01-01T00:00:00Z",
    "not_before": "2024-01-01T00:00:00Z",
    "public_key": {
      "algorithm": "Ed25519",
      "bits": 256
    },
    "sans": {
      "dns_names": [
        "api.example.test",
        "www.example.test"
      ],
      "email_addresses": [],
      "ip_addresses": [],
      "uris": []
    },
    "serial_hex": "402",
    "signature_algorithm": "Ed25519",
    "subject": "CN=api.example.test,O=x402Atlas Synthetic Examples",
    "subject_rdns": [
      [
        {
          "name": "organizationName",
          "oid": "2.5.4.10",
          "value": "x402Atlas Synthetic Examples"
        }
      ],
      [
        {
          "name": "commonName",
          "oid": "2.5.4.3",
          "value": "api.example.test"
        }
      ]
    ]
  },
  "hostname": "api.example.test",
  "hostname_evaluated": true,
  "hostname_matches": true,
  "operation": "certificate-inspect",
  "time_status": "currently_valid",
  "warnings": [
    "Parsed structure, validity dates, and hostname comparison do not establish certificate trust, revocation status, key possession, identity, or suitability."
  ]
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://artifact-inspector.use.x402atlas.com/certificate' \
  -H 'content-type: application/json' \
  --data-raw '{"at_time":"2024-06-01T12:00:00Z","hostname":"api.example.test","pem":"-----BEGIN CERTIFICATE-----\nMIIBmDCCAUqgAwIBAgICBAIwBQYDK2VwMEIxJTAjBgNVBAoTHHg0MDJBdGxhcyBT\neW50aGV0aWMgRXhhbXBsZXMxGTAXBgNVBAMTEGFwaS5leGFtcGxlLnRlc3QwHhcN\nMjQwMTAxMDAwMDAwWhcNMzQwMTAxMDAwMDAwWjBCMSUwIwYDVQQKExx4NDAyQXRs\nYXMgU3ludGhldGljIEV4YW1wbGVzMRkwFwYDVQQDExBhcGkuZXhhbXBsZS50ZXN0\nMCowBQYDK2VwAyEAebVWLo/mVPlAeLES6KmLp5AfhTrmlb7X4OORC60ElmSjZDBi\nMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8E\nAjAAMC0GA1UdEQQmMCSCEGFwaS5leGFtcGxlLnRlc3SCEHd3dy5leGFtcGxlLnRl\nc3QwBQYDK2VwA0EAD54hSK5TQKCStJ+erMx4HpqTTAX2eD7eGLZLNwr3DPtfRDfw\no9Lkli6ywIh515laMt/OM2lhcH6qFDZ1prqZDg==\n-----END CERTIFICATE-----\n"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://artifact-inspector.use.x402atlas.com/certificate' \
  -H 'content-type: application/json' \
  --data-raw '{"at_time":"2024-06-01T12:00:00Z","hostname":"api.example.test","pem":"-----BEGIN CERTIFICATE-----\nMIIBmDCCAUqgAwIBAgICBAIwBQYDK2VwMEIxJTAjBgNVBAoTHHg0MDJBdGxhcyBT\neW50aGV0aWMgRXhhbXBsZXMxGTAXBgNVBAMTEGFwaS5leGFtcGxlLnRlc3QwHhcN\nMjQwMTAxMDAwMDAwWhcNMzQwMTAxMDAwMDAwWjBCMSUwIwYDVQQKExx4NDAyQXRs\nYXMgU3ludGhldGljIEV4YW1wbGVzMRkwFwYDVQQDExBhcGkuZXhhbXBsZS50ZXN0\nMCowBQYDK2VwAyEAebVWLo/mVPlAeLES6KmLp5AfhTrmlb7X4OORC60ElmSjZDBi\nMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8E\nAjAAMC0GA1UdEQQmMCSCEGFwaS5leGFtcGxlLnRlc3SCEHd3dy5leGFtcGxlLnRl\nc3QwBQYDK2VwA0EAD54hSK5TQKCStJ+erMx4HpqTTAX2eD7eGLZLNwr3DPtfRDfw\no9Lkli6ywIh515laMt/OM2lhcH6qFDZ1prqZDg==\n-----END CERTIFICATE-----\n"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fartifact-inspector.use.x402atlas.com%2Fcertificate&method=POST
const res = await pay("https://artifact-inspector.use.x402atlas.com/certificate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "at_time": "2024-06-01T12:00:00Z",
    "hostname": "api.example.test",
    "pem": "-----BEGIN CERTIFICATE-----\nMIIBmDCCAUqgAwIBAgICBAIwBQYDK2VwMEIxJTAjBgNVBAoTHHg0MDJBdGxhcyBT\neW50aGV0aWMgRXhhbXBsZXMxGTAXBgNVBAMTEGFwaS5leGFtcGxlLnRlc3QwHhcN\nMjQwMTAxMDAwMDAwWhcNMzQwMTAxMDAwMDAwWjBCMSUwIwYDVQQKExx4NDAyQXRs\nYXMgU3ludGhldGljIEV4YW1wbGVzMRkwFwYDVQQDExBhcGkuZXhhbXBsZS50ZXN0\nMCowBQYDK2VwAyEAebVWLo/mVPlAeLES6KmLp5AfhTrmlb7X4OORC60ElmSjZDBi\nMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8E\nAjAAMC0GA1UdEQQmMCSCEGFwaS5leGFtcGxlLnRlc3SCEHd3dy5leGFtcGxlLnRl\nc3QwBQYDK2VwA0EAD54hSK5TQKCStJ+erMx4HpqTTAX2eD7eGLZLNwr3DPtfRDfw\no9Lkli6ywIh515laMt/OM2lhcH6qFDZ1prqZDg==\n-----END CERTIFICATE-----\n"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://artifact-inspector.use.x402atlas.com/certificate",
        json={
            "at_time": "2024-06-01T12:00:00Z",
            "hostname": "api.example.test",
            "pem": "-----BEGIN CERTIFICATE-----\nMIIBmDCCAUqgAwIBAgICBAIwBQYDK2VwMEIxJTAjBgNVBAoTHHg0MDJBdGxhcyBT\neW50aGV0aWMgRXhhbXBsZXMxGTAXBgNVBAMTEGFwaS5leGFtcGxlLnRlc3QwHhcN\nMjQwMTAxMDAwMDAwWhcNMzQwMTAxMDAwMDAwWjBCMSUwIwYDVQQKExx4NDAyQXRs\nYXMgU3ludGhldGljIEV4YW1wbGVzMRkwFwYDVQQDExBhcGkuZXhhbXBsZS50ZXN0\nMCowBQYDK2VwAyEAebVWLo/mVPlAeLES6KmLp5AfhTrmlb7X4OORC60ElmSjZDBi\nMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8E\nAjAAMC0GA1UdEQQmMCSCEGFwaS5leGFtcGxlLnRlc3SCEHd3dy5leGFtcGxlLnRl\nc3QwBQYDK2VwA0EAD54hSK5TQKCStJ+erMx4HpqTTAX2eD7eGLZLNwr3DPtfRDfw\no9Lkli6ywIh515laMt/OM2lhcH6qFDZ1prqZDg==\n-----END CERTIFICATE-----\n",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402558 ms$0.005
6 h agoPassed402573 ms$0.005
10 h agoPassed402518 ms$0.005
15 h agoPassed402541 ms$0.005
19 h agoPassed402589 ms$0.005
Show 10 older checks
23 h agoPassed402541 ms$0.005
27 h agoPassed402615 ms$0.005
31 h agoPassed402529 ms$0.005
35 h agoPassed402570 ms$0.005
39 h agoPassed402545 ms$0.005
43 h agoPassed402563 ms$0.005
47 h agoPassed402580 ms$0.005
2 days agoPassed402634 ms$0.005
2 days agoPassed402542 ms$0.005
2 days agoPassed402492 ms$0.005