File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -225,11 +225,11 @@ fn main() {
225
225
226
226
let passwd = rpassword:: prompt_password ( "Password for the private key: " )
227
227
. expect ( "unable to read password" ) ;
228
- let msg = get_message ( text, file) ;
229
228
let signer = runtime
230
229
. find_signer ( ssi, & passwd)
231
230
. expect ( "unknown signing identity" ) ;
232
231
eprintln ! ( "Using key {signer}" ) ;
232
+ let msg = get_message ( text, file) ;
233
233
let cert = signer. sign ( msg) ;
234
234
if full {
235
235
println ! ( "{cert:#}" ) ;
@@ -306,6 +306,7 @@ fn get_message(text: Option<String>, file: Option<PathBuf>) -> Vec<u8> {
306
306
( Some ( t) , None ) => t. into_bytes ( ) ,
307
307
( None , Some ( f) ) => fs:: read ( f) . expect ( "unable to read the file" ) ,
308
308
( None , None ) => {
309
+ eprintln ! ( "Type or paste your message and press Ctrl+D on the last empty line:" ) ;
309
310
let mut s = String :: new ( ) ;
310
311
stdin ( )
311
312
. read_to_string ( & mut s)
You can’t perform that action at this time.
0 commit comments