CmdID

CmdID / Commands

openssl-dgst

Generate digest values and perform signature operations. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Calculate the SHA256 digest for a file, saving the result to a specific file

openssl dgst -sha256 -binary -out output_file input_fileIdentify

Sign a file using an RSA key, saving the result to a specific file

openssl dgst -sign private_key_file -sha256 -sigopt rsa_padding_mode:pss -out output_file input_fileIdentify

Verify an RSA signature

openssl dgst -verify public_key_file -signature signature_file -sigopt rsa_padding_mode:pss signature_message_fileIdentify

Sign a file using and ECDSA key

openssl dgst -sign private_key_file -sha256 -out output_file input_fileIdentify

Verify an ECDSA signature

openssl dgst -verify public_key_file -signature signature_file signature_message_fileIdentify