Na een hele dag zoeken ook via google toch maar de vraag hier omdat ik er niet uit kom..
Ik gebruik NoCat voor mijn hotspot met een eigen authservice.
Hiervoor is een pgp key nodig en die heb ik aangemaakt maar ik krijg errors, wie weet er raad?
gpg: Warning: using insecure memory!
gpg: Sorry, no terminal at all requested - can't get input
gpg --sign --armor --homedir=/usr/local/nocat/authserv/pgp --keyring trustedkeys.gpg --no-tty -o- returned error: Illegal seek ( 2 )
Can't call method "text" on an undefined value at ../lib/NoCat/AuthService.pm line 134.
Op lijn 134 staat de volgende code:
my ($tix) = ( $msg->text =~ /\n\n(.*?)\n-+/gos )
Hieronder de sub:
sub notify_via_client {
my ( $self, $action, $data ) = @_;
my $msg = $self->message( $action, $data )->encode;
# Throw away the GPG header and footer, and then strip all the whitespace.
#
my ($tix) = ( $msg->text =~ /\n\n(.*?)\n-+/gos )
or return $self->log( 1 =>
"GPG failure in passive notification from client $data->{Mac}" );
$tix =~ s/\s//gos;
# Take the ticket we've just made, and redirect the client to
# send it to the gateway via GET request.
# We're just given the address and port of the gateway, so
# we have to add the http:// part.
$data->{redirect} = $self->url(
"http://$data->{gateway}/" => { ticket => $tix } );
$data->{token} = $self->increment_token( $data->{token} );
return $data;
}

Likes:

