DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th April 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default [SOLVED] signify: unable to parse checksum error.

I want to keep track of the hashes of config files that I am saving for future use. Below is an example of what I am referring to.

Code:
untrusted comment: verify with mykey.pub
RWQK3BH3tqw7m29hdaNZGozCOj+kxqr6Z405Dxn8/K9garTmXpPbucJGFib0wB/z1V40QNpDhAzpr8nu5cQUSyoo18sGJGK/HAE=
SHA256 (mixerctl.conf.cfg) = bafc3c2ecc10fb26cdc0534c159465d1bc25fac3b17c13648ab8679be05384c4
SHA256 (xfce_4.1.2p.cfg) = de5dd202811c8e2ec334c31750111cde1e047fb574dcbcafc8bb14457e2d79ec
The above file is the result of copying and pasting the checksums output for the two files to a text file, and then signing it with the signify key using the -e option.

How I signed the above file:

Code:
$ signify -S -e -s mykey.sec -m SHA256 -x SHA256.sig
Below is the error I get when I try to verify the signatures.

Code:
$ signify -C -p mykey.pub -x SHA256.sig xfce_4.1.2p.cfg
Signature Verified
signify: unable to parse checksum line 
$
UPDATE:

The above error is no longer. Instead the file checks OK.

The exact above process worked after recreating it using a graphical text editor, rather than vi.
A hidden character could have been pasted into vi that caused signify to throw an error.

Last edited by jjstorm; 4th April 2016 at 11:13 PM.
Reply With Quote
  #2   (View Single Post)  
Old 4th April 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Don't edit signed files.
Reply With Quote
  #3   (View Single Post)  
Old 5th April 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by jjstorm View Post
I want to keep track of the hashes of config files that I am saving for future use.
You may also want to look at mtree(8). It is designed exactly for this purpose.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bourne pipe operator parse ambiguity? thirdm Programming 2 29th June 2013 05:02 AM
unable to reset hardware; hal status on wpa error sepuku OpenBSD General 8 10th July 2011 02:25 PM
shc unistd.h:239: error: syntax error before '&' token laraaj OpenBSD General 3 11th September 2010 07:21 AM
unable to log in delboy FreeBSD Installation and Upgrading 5 31st August 2008 11:39 AM
Unable to login squirrelmail satimis Other BSD and UNIX/UNIX-like 3 28th May 2008 04:21 PM


All times are GMT. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick