sign filename
This command signs the document filename. If the parameter filename is omitted, then the document to sign is taken from standard input. If the option output is used, gpg will output the signed information to the specified file.