Skip to content

Every tried to run 'diff' on 2 certificate files? Doesn't quite work. This tool helps resolve that: a clear report between 2 certificates, reporting all differences.

Notifications You must be signed in to change notification settings

xivSolutions/certdiff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

certdiff

Show the difference between 2 certificate files.

Usage

$ certdiff /path/to/file1.crt /path/to/file2.crt

Output

Differences are highlighted using the diff -y output (side-by-side diff), output with the | character in between indicates differences between the files.

$ ./certdiff cronweekly.com/cert.pem sysca.st/cert.pem
subject= /CN=cronweekly.com                               |  subject= /CN=sysca.st
issuer= /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority     issuer= /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority
notBefore=Feb 15 08:48:00 2016 GMT                        |  notBefore=Feb 15 09:11:00 2016 GMT
notAfter=May 15 08:48:00 2016 GMT                         |  notAfter=May 15 09:11:00 2016 GMT

If there are no differences, the tool will tell you.

$ ./certdiff cronweekly.com/cert.pem othercert/cert.pem
No differences, the data (FQDN, SAN, ...) is the same.

About

Every tried to run 'diff' on 2 certificate files? Doesn't quite work. This tool helps resolve that: a clear report between 2 certificates, reporting all differences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%