Received:
by LISTSERV.REDIRIS.ES (LISTSERV-TCP/IP release 14.5) with spool id
6190114 for [log in para visualizar]; Wed, 1 Jul 2009 12:05:06 +0200
from abel.rediris.es (abel.rediris.es [130.206.24.2]) by
listserv.rediris.es (Postfix) with ESMTP id 448FF5C201 for
< [log in para visualizar]>; Wed, 1 Jul 2009 12:05:06 +0200 (CEST)
from chico.rediris.es (HELO chico) ([130.206.1.3]) by abel.rediris.es
with ESMTP; 01 Jul 2009 12:05:06 +0200
Date:
Wed, 1 Jul 2009 12:05:01 +0200
Content-Transfer-Encoding:
quoted-printable
Mime-Version:
1.0
|
bueno pues utilizando las claves privkey y pubkey que vienen de ejemplo con
papi parece haberse solucionado parcialmente, el PoA.pm al testear el GpoA
no imprime el error pero cuando llega a la linea 910 falla el openssl.
el trozo de codigo del PoA es :
# Get the output block maximun size
## Non use the PADDINGSIZE to decrypt
# Get the size of block to encrypt and total number of blocks
my $pkey = Crypt::OpenSSL::RSA->new_public_key(read_key_file($keyFile));
$pkey->use_pkcs1_padding();
my $outputBlockSize = $pkey->size();
my $inputBlockSize = $outputBlockSize;#- PADDINGSIZE;
my $numBlocks = int($inputSize / $inputBlockSize);
# Start to deencrypt.
my $blockCount = 0;
my @decryptBuffer = ();
while ($blockCount < $numBlocks){
my $index = $blockCount * $inputBlockSize;
my $block = substr($cryptData, $index, $inputBlockSize);
linea 910: $decryptBuffer[$blockCount] = $pkey->public_decrypt($block);
$blockCount++;
}
el log de apache :
[Wed Jul 01 12:15:36 2009] [notice] Apache/2.2.3 (Linux/SUSE) configured --
resuming normal operations
[Wed Jul 01 12:15:36 2009] [info] Server built: Mar 2 2009 17:32:19
[Wed Jul 01 12:15:36 2009] [debug] prefork.c(991): AcceptMutex: sysvsem
(default: sysvsem)
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391: PoA::set_parameters# Servername = <poa.localhost>\n
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391: PoA::set_parameters# Server_ID = <glpi>\n
[Wed Jul 01 12:16:31 2009] [warn] [client 127.0.0.1]
PAPI#15306_1246443391_glpi: Lcook is empty
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391_glpi: Hcook is empty
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391: PoA::set_parameters# Servername = <poa.localhost>\n
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391: PoA::set_parameters# Server_ID = <glpi>\n
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391: PoA::set_parameters# Servername = <poa.localhost>\n
[Wed Jul 01 12:16:31 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443391: PoA::set_parameters# Server_ID = <glpi>\n
[Wed Jul 01 12:16:32 2009] [error] [client 127.0.0.1] File does not exist:
/srv/www/htdocs/login.css, referer:
https://localhost/cgi-bin/AuthServer?ATTREQ=glpi&PAPIPOAREF=3F7BA4C8662811DEB815E92CEB355C56&PAPIPOAURL=http%3A%2F%2Fpoa%2Elocalhost%2Fglpi%2F
[Wed Jul 01 12:16:33 2009] [error] [client 127.0.0.1] File does not exist:
/srv/www/htdocs/xhtmlvalid.png, referer:
https://localhost/cgi-bin/AuthServer?ATTREQ=glpi&PAPIPOAREF=3F7BA4C8662811DEB815E92CEB355C56&PAPIPOAURL=http%3A%2F%2Fpoa%2Elocalhost%2Fglpi%2F
[Wed Jul 01 12:16:33 2009] [error] [client 127.0.0.1] File does not exist:
/srv/www/htdocs/cssvalid.png, referer:
https://localhost/cgi-bin/AuthServer?ATTREQ=glpi&PAPIPOAREF=3F7BA4C8662811DEB815E92CEB355C56&PAPIPOAURL=http%3A%2F%2Fpoa%2Elocalhost%2Fglpi%2F
[Wed Jul 01 12:16:44 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443404: PoA::set_parameters# Servername = <poa.localhost>\n
[Wed Jul 01 12:16:44 2009] [notice] [client 127.0.0.1]
PAPI#15306_1246443404: PoA::set_parameters# Server_ID = <glpi>\n
[Wed Jul 01 12:16:44 2009] [error] [client 127.0.0.1] RSA.xs:202: OpenSSL
error: block type is not 01 at /usr/lib/perl5/site_perl/5.8.8/PAPI/PoA.pm
line 910.\n
¿sabe alguien como darle solucion?
|
|
|