S2W Quaxar

Download 107
Last updated Jul 31, 2026

quaxar-asm-certificates

Get certificates attached to exposed assets from the S2W Quaxar ASM service.

Syntax

quaxar-asm-certificates [profile=STRING] [value=STRING] [statuses=STRING] [issuers=STRING] [orgs=STRING] [sorts=STRING] [duration=STRING] [from=STRING] [to=STRING] [pretty=BOOL]

Options

profile=STRING
Optional. QUAXAR connect profile code. If omitted, an available profile is used automatically.
value=STRING
Optional. Serial or CN domain name to search.
statuses=STRING
Optional. Comma-separated certificate statuses to filter. Allowed values: VALID, INVALID, SOON_EXPIRED, EXPIRED.
issuers=STRING
Optional. Comma-separated certificate issuers.
orgs=STRING
Optional. Comma-separated customer organization names.
sorts=STRING
Optional. Sort order. Allowed values: detected_time_desc, detected_time_asc, expiration_desc, expiration_asc.
duration=STRING
Optional. Scan only recent data. Use s(second), m(minute), h(hour), d(day), mon(month) time unit. e.g. 7d.
from=STRING
Optional. Start time of range in yyyyMMddHHmmss format. If you omit the time part, it is padded by zero.
to=STRING
Optional. End time of range in yyyyMMddHHmmss format. Cannot be used alone; specify with from or duration.
pretty=BOOL
Optional. Set t to enable pretty print with line breaks (default: f).

Output fields

FieldTypeNameDescription
profilestringConnect profileProfile name of QUAXAR
certificate_idstringCertificate IDCertificate unique ID
serialstringSerialCertificate serial number
cn_domain_namestringCN domain nameCertificate CN domain name
detecteddateDetectedCertificate detection time
valid_untildateValid untilCertificate expiration time
issuerstringIssuerCertificate issuer
statusstringStatusVALID, INVALID, SOON_EXPIRED or EXPIRED

Error codes

Parsing errors

Error messageCauseResolution
Specify valid Quaxar profile.Invalid profile in the profile optionSpecify a valid Quaxar connect profile code
No available Quaxar profile found.No Quaxar connect profile registeredRegister a Quaxar connect profile first
Invalid statuses. Available statuses are VALID, INVALID, SOON_EXPIRED, EXPIRED.Disallowed status value in statusesUse only allowed status values
Invalid sorts. Available sorts are detected_time_desc, detected_time_asc, expiration_desc, expiration_asc.Disallowed value in sortsUse one of the allowed sort orders
Invalid duration. Use s(second), m(minute), h(hour), d(day), mon(month) time unit. (e.g. 7d)Malformed durationUse the specified time unit format
Specify from or duration option.to specified without from or durationSpecify from or duration with to

Runtime errors

Error messageCauseResolution
quaxar asm api error: status=..., message=...ASM API returned an error stateCheck profile permission and ASM service

Description

quaxar-asm-certificates is a source command that iterates the certificate list discovered by the Quaxar ASM API page by page, emitting each certificate as a row. Every row carries the connect profile name used for the query in the profile field.

Use statuses to filter by validity/expiration state and issuers to filter by issuer; use sorts to order by detection or expiration time. It is useful for periodically checking soon-to-expire (SOON_EXPIRED) and expired (EXPIRED) certificates.

Examples

Example: Act early on soon-to-expire certificates

Situation: An infrastructure manager wants to review soon-to-expire certificates ordered by ascending expiration time to prioritize renewals.

quaxar-asm-certificates statuses=SOON_EXPIRED,EXPIRED sorts=expiration_asc

Expected result:

certificate_idcn_domain_namestatusvalid_untilissuer
cert-1a2b3cexample.comSOON_EXPIRED2026-08-10 00:00:00Example CA
cert-4d5e6fapi.example.comEXPIRED2026-07-01 00:00:00Example CA

Interpretation: Certificates closest to expiration are sorted to the top. Use the certificate_id with the quaxar-asm-certificate command to inspect details such as signature algorithm and alt names.