{"tool":"openssl","tool_display":"Openssl","intent":"sign-file-with-rsa-key","intent_display":"sign file with rsa key","title":"Openssl Command: sign file with rsa key","command_string":"openssl dgst -sign <private_key_file> -sha256 -sigopt rsa_padding_mode:pss -out <output_file> <input_file>","raw_command_string":"openssl dgst -sign {{private_key_file}} -sha256 -sigopt rsa_padding_mode:pss -out {{output_file}} {{input_file}}","description":"Exact CLI syntax to sign file with rsa key using Openssl.","usage_scenario":"This command is used to digitally sign a file for verification purposes.","scenario_context":"This command is used to digitally sign a file for verification purposes.","simulated_output":"Signature written to output_file","how_to_steps":["Replace {{private_key_file}} with your RSA private key file path.","Specify {{input_file}} as the file you want to sign.","Set {{output_file}} to the desired output file path for the signature."],"inferred_category":"Security","canonical_url":"https://www.syntaxstandard.com/openssl/sign-file-with-rsa-key"}