Difference between revisions of "X.509"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
== Examples ==
 
== Examples ==
* <code>[[openssl x509]] -inform [[pem]] -noout -text</code>
+
* <code>[[openssl x509 -inform]] [[pem]] -noout -text</code>
* <code>openssl x509 -noout -text -in /path/to/your/cert.pem</code>
+
* <code>[[openssl x509 -noout -text]] -in /path/to/your/cert.pem</code>
* <code>[[keytool]] -printcert -file certificate.pem</code>
+
* <code>[[openssl x509 -noout -dates]]</code>
 +
* <code>[[keytool -printcert]] -file certificate.pem</code>
  
 
* <code>[[openssl x509 -req]]</code>
 
* <code>[[openssl x509 -req]]</code>
Line 21: Line 22:
 
== Activities ==
 
== Activities ==
 
* Read [[GitLab]]: S/MIME X509 verification of commits https://gitlab.com/gitlab-org/gitlab/issues/29782
 
* Read [[GitLab]]: S/MIME X509 verification of commits https://gitlab.com/gitlab-org/gitlab/issues/29782
 +
* [[How to check certification expiration date from command line]]: <code>[[openssl x509 -dates]]</code>
 +
* Create new [[x509]] certificate: <code>[[Create new x509 certificate: openssl req -x509 -newkey|openssl req -x509 -newkey]]</code>
  
 
== Related terms ==
 
== Related terms ==
Line 27: Line 30:
 
* <code>E1207 14:22:57.502748      1 scraper.go:140] "[[Failed to scrape node]]" err="Get \"https://172.30.2.2:10250/metrics/resource\": [[x509]]: [[cannot validate certificate]] for 172.30.2.2 because it doesn't contain any IP SANs" node="node01"</code>
 
* <code>E1207 14:22:57.502748      1 scraper.go:140] "[[Failed to scrape node]]" err="Get \"https://172.30.2.2:10250/metrics/resource\": [[x509]]: [[cannot validate certificate]] for 172.30.2.2 because it doesn't contain any IP SANs" node="node01"</code>
 
* [[Subject Alternative Name (SAN)]]
 
* [[Subject Alternative Name (SAN)]]
 +
* <code>[[/etc/ssl/certs/]]</code>
 +
* [[ SSL certificate problem: unable to get local issuer certificate]]
  
 
== See also ==
 
== See also ==
 +
* {{openssl x509}}
 
* {{X.509}}
 
* {{X.509}}
 
* {{CSR}}
 
* {{CSR}}
* {{TLS}}
 
* {{CA}}
 
 
  
 
[[Category: Security]]
 
[[Category: Security]]
 
[[Category: Cryptography]]
 
[[Category: Cryptography]]

Latest revision as of 10:36, 8 March 2024

wikipedia:X.509 standard format for Public key certificate used in TLS.

Tools: openssl, keytool, certinfo (Cloudflare) https://github.com/cloudflare/cfssl/blob/master/certinfo/certinfo.go[1]


Examples[edit]

Errors[edit]

Security[edit]

  • ASN.1 and x509 parsers in the kernel have historically been quite problematic (CVE-2008-1673, CVE-2016-2053),

Activities[edit]

Related terms[edit]

See also[edit]

  • https://prefetch.net/blog/2019/12/10/converting-x509-certificates-to-json-objects/
  • Advertising: