Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gpg vs binary files [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1415
Location: <ud|me|ts> - Italy

PostPosted: Tue May 12, 2009 2:03 pm    Post subject: gpg vs binary files [Risolto] Reply with quote

Ho il file clear.pdf, aperto correttamente da xpdf.
Lo firmo con gpg con il seguente comando:
Code:
gpg --output sign.pdf --sign --recipient Luca clear.pdf

ed ottengo il file sign.pdf.
Il problema è che se provo ad aprire il file sign.pdf con xpdf ottengo solamente il seguente errore:
Code:
#> xpdf sign.pdf
Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

mi dicono risultato analogo con acroread.
Il documento sign.pdf non è cifrato, quindi a mio modo di vedere dovrebbe essere aperto correttamente, dove sbaglio?
_________________
LP


Last edited by lucapost on Tue May 12, 2009 2:48 pm; edited 2 times in total
Back to top
View user's profile Send private message
Dun
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 172
Location: Amsterdam (NL) / Venice (IT)

PostPosted: Tue May 12, 2009 2:29 pm    Post subject: Reply with quote

A quanto ne so per binary files devi creare una detached signature...

[update]

Code:

blake% gpg --output doc --decrypt doc.sig
gpg: Signature made Fri Jun  4 12:02:38 1999 CDT using DSA key ID BB7576AC
gpg: Good signature from "Alice (Judge) <alice@cyb.org>"


from http://www.gnupg.org/gph/en/manual.html#AEN136

Le firme separate per attachment e' un RFC per le mail se ricordo bene...
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1415
Location: <ud|me|ts> - Italy

PostPosted: Tue May 12, 2009 2:46 pm    Post subject: Reply with quote

Ti ringrazio molto, ho trovato un'ottima alternativa nell'utilizzo dell'opzione --clearsign.
_________________
LP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum