Two-Hearts / generate-cert-chain-thumbprint

Python script to generate certificate chain SHA256 thumbprints from COSE signature envelope.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate-cert-chain-thumbprint

This script takes in a valid COSE signature envelope and prints out to standard output the SHA256 thumbprints of the certificate chain under x5chain of the COSE envelope.
The printout order is as follows: [leaf cert, intermediate cert, ..., root cert]

Usage

python generate-cert-chain-thumbprint.py -f ./cose_signature_envelope.sig
python generate-cert-chain-thumbprint.py --file_path ./cose_signature_envelope.sig

About

Python script to generate certificate chain SHA256 thumbprints from COSE signature envelope.

License:Apache License 2.0


Languages

Language:Python 100.0%