mandos passfile

Juan Miguel Alcarria Herrera juanmi at arco2000.es
Mon May 13 08:36:11 CEST 2019


Hi Teddy, the problem is the \n character at the end of file.

juanmi at juanmi:~$ od -t c /tmp/p.txt
0000000   p   e   p   e  \n
0000005

I solve the automatism with expect.

Thanks other time ;-)

El sáb., 4 may. 2019 a las 16:17, Teddy Hogeborn (<teddy at recompile.se>)
escribió:

> Juan Miguel Alcarria Herrera <juanmi at arco2000.es> writes:
>
> > I write you because I think that I found a bug when I use the passfile
> > with mandos-keygen.
> >
> > If I use this command:
> >
> > mandos-keygen --passfile /tmp/p.txt --type RSA --force
> >
> > The system don't start with the content of /tmp/p.txt (only have the
> > word pepe without /n or some enter)
> >
> > If I use this command to check the password:
> >
> > /usr/lib/arm-linux-gnueabihf/mandos/plugins.d/mandos-client
> > --pubkey=/etc/keys/mandos/pubkey.txt
> > --seckey=/etc/keys/mandos/seckey.txt --connect=111.111.111.111:8888
> >
> > (Without the final echo) The result have a Enter:
> >
> > root at openfone:~#
> > /usr/lib/arm-linux-gnueabihf/mandos/plugins.d/mandos-client
> > --pubkey=/etc/keys/mandos/pubkey.txt
> > --seckey=/etc/keys/mandos/seckey.txt --connect=111.111.111.111:8888
> > pepe
> > root at openfone:~#
> >
> > If i use
> >
> > mandos-keygen --password --type RSA --force
> >
> > and input pepe the result of the check command is this:
> >
> > root at openfone:~#
> > /usr/lib/arm-linux-gnueabihf/mandos/plugins.d/mandos-client
> > --pubkey=/etc/keys/mandos/pubkey.txt
> > --seckey=/etc/keys/mandos/seckey.txt --connect=111.111.111.111:8888
> > peperoot at openfone:~#
> >
> > and works fine. You can watch that in the second command don't have a
> > Enter beetwen pepe and root
>
> I cannot reproduce this.  When I try, mandos-client correctly outputs
> the password without a newline character.
>
> What version of Mandos are you using?
>
> If you run mandos-client with the --debug flag, mandos-client should
> (among a lot of other debugging output ) print "Mandos plugin
> mandos-client: Decrypted password is:" and the password in hexadecimal
> bytes.  Is the last byte a newline character (0A) for you?
>
> Does your file /tmp/p.txt truly have no newline character in it?  That
> is, if you run the command "od -t c /tmp/p.txt", does the output look
> like this:
>
> $ od -t c /tmp/p.txt
> 0000000   p   e   p   e
> 0000004
> $
>
> /Teddy Hogeborn
>
> --
> The Mandos Project
> https://www.recompile.se/mandos
> _______________________________________________
> Mandos-Dev mailing list
> Mandos-Dev at recompile.se
> https://mail.recompile.se/cgi-bin/mailman/listinfo/mandos-dev
>


-- 
*Juan Miguel Alcarria Herrera*
Departamento Informática y Telecomunicaciones.
+34 949 348 480


NOTA LEGAL: De conformidad con lo establecido en las normativas vigentes de
Protección de Datos a nivel nacional y europeo, ARCO 2000 TERRENOS Y
EDIFICACIONES garantiza la adopción de las medidas técnicas y organizativas
necesarias para asegurar el tratamiento confidencial de los datos de
carácter personal. Asimismo le informamos que su dirección de email ha sido
recabada del propio interesado o de fu entes de acceso público, y está
incluida en nuestros ficheros con la finalidad de mantener contacto
con usted para el envío de comunicaciones sobre nuestros servicios mientras
exista un interés mutuo para ello o una relación negocia! o contractual.
Usted puede ejercer sus derechos de acceso, rectificación y supresión de
sus datos, así como los derechos de limitación y oposición, dirigiendo su
petición a la dirección postal C/ Josefa Valcarcel 8, 28027,Madrid, o al
correo electrónico rgpd at arco2000.es.

Si considera que el tratamiento no se ajusta a la normativa vigente de
Protección de Datos, podrá presentar una reclamación ante la autoridad de
control correspondiente.

Puede ponerse en contacto con nosotros si precisa más información al
respecto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.recompile.se/pipermail/mandos-dev/attachments/20190513/b9fbb538/attachment-0001.html>


More information about the Mandos-Dev mailing list