Changeset 38 for keysigning
- Timestamp:
- Jul 9, 2007, 8:39:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keysigning/gpg-challenge.pl
r37 r38 28 28 if ( $keyID !~ /[A-F0-9]{8}/i ) 29 29 { 30 30 die "\"$keyID\" doesn't look like a valid Key-ID!\n"; 31 31 } 32 32 … … 36 36 37 37 open( GPG, "gpg --with-colon --list-sigs --fixed-list-mode $keyID 2>/dev/null|" ) 38 38 || die "Cannot run gpg\n"; 39 39 40 40 my $uid = ""; … … 78 78 foreach $uid ( keys %uids ) 79 79 { 80 81 82 83 84 80 # Get a random string: 81 my $challenge; 82 open ( RANDOM, "head -c 18 /dev/urandom | mimencode|" ) 83 || die "Cannot get random string\n"; 84 while ( <RANDOM> ) 85 85 { 86 87 } 88 89 86 $challenge .= $_; 87 } 88 chomp $challenge; 89 close RANDOM; 90 90 91 91 # Create the encrypted part of the body of the message: 92 92 my $body = << "EOF"; 93 93 [Weiter unten steht dasselbe auf deutsch.] 94 94 … … 158 158 unlink $tempfile; 159 159 160 160 $body = << "EOF"; 161 161 [Weiter unten steht dasselbe auf deutsch.] 162 162 … … 209 209 key certification challenge\" \"$body\" false|" ) || die "Cannot access Kmail DCOP \ 210 210 interface\n"; my $dcopRef = <DCOP>; 211 212 213 214 211 close DCOP; 212 chomp $dcopRef; 213 214 print "$challenge: $uid ($keyID)\n"; 215 215 } 216 216 }
Note: See TracChangeset
for help on using the changeset viewer.