Zcertificate
Command line utility for parsing certificates
Install / Use
/learn @zmap/ZcertificateREADME
ZCertificate
ZCertificate parses X.509 certificates and runs ZLint.
Installing ZCertificate
-
Pick a ZCertificate release and download the
.tar.gzarchive for your architecture (for exampleLinux_x86_64.tar.gz):wget https://github.com/zmap/zcertificate/releases/download/v0.0.1/zcertificate_0.0.1_Linux_x86_64.tar.gz -
Extract the archive and change into the extracted directory:
tar xf zcertificate*.tar.gz cd zcertificate* -
Make the
zcertificateprogram executable:chmod +x zcertificate -
Run the
zcertificateprogram:./zcertificate
Building from source
Building ZCertificate from source requires Go 1.16.x or newer.
Assuming the go command is in your $PATH you can build ZCertificate from
source with:
go get github.com/zmap/zcertificate/cmd/zcertificate
Usage
$ ./zcertificate --help
Usage of ./zcertificate:
-fatal-parse-errors
Halt if a certificate cannot be parsed. Default is to log.
-json-parse-errors
Output json if a certificate cannot be parsed. Default is not to.
-format string
one of {pem, base64} (default "pem")
-output-file string
Specifies file path for the output JSON. (default "-")
-procs int
Specifies number of processes to run on. Default is 0, meaning use current value of $GOMAXPROCS.
-workers int
Specifies number of goroutines to use to parse and lint certificates. (default 1)
$ cat example.crt | zcertificate | jq .
INFO[0000] reading from stdin
INFO[0000] writing to stdout
{
"raw": "...",
"parsed": {
"version": 3,
"serial_number": "513",
"signature_algorithm": {
"name": "SHA1WithRSA",
"oid": "1.2.840.113549.1.1.5"
},
"issuer": {
"country": [
"US"
],
...
}
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
