crypto/x509 package. Certificate.Verify() is the TLS chain validation entry point. Skipping verification or using empty VerifyOptions is a finding.
.ParseCertificate().Verify().ParseCertificate()SourceParseCertificate(asn1Data []byte) (*Certificate, error)
Parses DER-encoded certificate. Source of cert data from network input.
.Verify()SinkVerify(opts VerifyOptions) ([][]*Certificate, error)
Verifies certificate chain. Finding when opts is empty (no root CA check).
0| FQN | Field | |
|---|---|---|
| crypto/x509 | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import GoX509