#
3118701f |
| 13-Nov-2018 |
mlelstv <mlelstv@NetBSD.org> |
Fix some error handling, json support, keyring handling.
|
#
0d2bebdb |
| 17-Dec-2014 |
agc <agc@NetBSD.org> |
Fix bug report from Jared - actually print the key when exporting
|
#
1ce8f15c |
| 22-Feb-2012 |
agc <agc@NetBSD.org> |
Add the --trusted-keys argument to netpgpkeys(1) to print out PGP ids in a machine-readable manner.
|
#
6b778720 |
| 02-Aug-2011 |
agc <agc@NetBSD.org> |
default the format for recovering key data to be "human", rather than hard coding it in the embedded calls.
|
#
484002bc |
| 05-Nov-2010 |
agc <agc@NetBSD.org> |
avoid calling a debug function that's not exported in libnetpgp
|
#
c59501b2 |
| 04-Nov-2010 |
agc <agc@NetBSD.org> |
Add the new --cipher option to usage message, pointed out by Thomas Klausner -- thanks, wiz!
|
#
f8aefef3 |
| 04-Nov-2010 |
agc <agc@NetBSD.org> |
+ add ability in netpgpkeys(1) to specify the cipher (symmetric algorithm) as specified in RFC 5581 + add the camellia cipher implementation from openssl
|
#
fdd702c3 |
| 31-Oct-2010 |
stacktic <stacktic@NetBSD.org> |
Typo in usage --export-keys -> --export-key
|
#
73f34b00 |
| 08-Sep-2010 |
agc <agc@NetBSD.org> |
Changes to 3.99.12/20100907
+ add a pretty print function mj_pretty(3) to libmj + added netpgp_write_sshkey(3) to libnetpgp + added pgp2ssh(1) + added preliminary support for ElGamal decryption, nee
Changes to 3.99.12/20100907
+ add a pretty print function mj_pretty(3) to libmj + added netpgp_write_sshkey(3) to libnetpgp + added pgp2ssh(1) + added preliminary support for ElGamal decryption, needed for DSA keys as yet untested, unworking, and a WIP + add support for using all ssh keys, even those protected by a passphrase, for decryption and signing. This rounds off ssh key file support in netpgp. + add a single character alias [-S file] for [--sshkeyfile file] to netpgpkeys(1) and netpgp(1)
As far as ssh key file support goes, see the following example:
% cp configure a % netpgp -S ~/.ssh/id_rsa.pub -e a % netpgp -S ~/.ssh/id_rsa.pub -d a.gpg Enter PEM pass phrase: % ls -al a a.gpg -rwxr-xr-x 1 agc agc 758398 Sep 7 05:38 a -rw------- 1 agc agc 156886 Sep 7 05:38 a.gpg %
show more ...
|
#
0bbf5d48 |
| 02-Sep-2010 |
agc <agc@NetBSD.org> |
move the functions to parse the JSON from netpgpkeys(1) into libnetpgp(3)
update the version number for recent changes.
update the date for recent changes.
regenerate the autoconf files.
|
#
c2a7bb79 |
| 01-Sep-2010 |
agc <agc@NetBSD.org> |
+ if we're going to the trouble of testing the return value from the setoption() function, probably best to return one
+ check for a valid entry in the JSON array instead of trusting that we have on
+ if we're going to the trouble of testing the return value from the setoption() function, probably best to return one
+ check for a valid entry in the JSON array instead of trusting that we have one
+ if there is no JSON value to print, don't print it
+ if we've set the keyring from an ssh key file, then we're using ssh keys - no need to set that value separately. This means that
% netpgpkeys --sshkeyfile ~/.ssh/id_test.pub -l 1 key found signature 2048/RSA (Encrypt or Sign) 8368881b3b9832ec 2010-08-26 Key fingerprint: 3abd bf38 33a5 1f87 d704 ad42 8368 881b 3b98 32ec uid osx-vm1.crowthorne.alistaircrooks.co.uk (/home/agc/.ssh/id_test.pub) <agc@osx-vm1.crowthorne.alistaircrooks.co.uk>
%
lists ssh pubkeys properly, no need for other tautological arguments
show more ...
|
#
9b987001 |
| 13-Aug-2010 |
agc <agc@NetBSD.org> |
Changes to 3.99.9/20100809
+ add single character options to netpgp(1) and netpgpkeys(1) + add -o long-option(=value)? options to netpgp(1) and netpgpkeys(1) + add some small preparations for using
Changes to 3.99.9/20100809
+ add single character options to netpgp(1) and netpgpkeys(1) + add -o long-option(=value)? options to netpgp(1) and netpgpkeys(1) + add some small preparations for using the first subkey for encryption (much more to follow)
show more ...
|
#
922661dd |
| 07-Aug-2010 |
agc <agc@NetBSD.org> |
Catch up the JSON routines being in their own library. Use the JSON routines to return all the text as a JSON-encoded string for all keys and sigs which are returned.
|
#
f46123a3 |
| 01-Jul-2010 |
agc <agc@NetBSD.org> |
if using ssh keys with any of the netpgp programs, set the home directory appropriately.
add some aliases for long command options across all programs
|
#
47561e26 |
| 25-Jun-2010 |
agc <agc@NetBSD.org> |
Changes to 3.99.5
+ make ssh fingerprints (md5) match netpgp listing + use the more functional hexdump function from ssh2pgp in place of the older hexdump function from openpgpsdk + pass hash type
Changes to 3.99.5
+ make ssh fingerprints (md5) match netpgp listing + use the more functional hexdump function from ssh2pgp in place of the older hexdump function from openpgpsdk + pass hash type down from command line where needed + add test for netpgp/ssh key fingerprint matching + make netpgpkeys(1) take a --hash= option
With these changes, netpgp can be made to generate the same fingerprint as openssh (by default, ssh-keygen(1) uses an md5 digest)
% /usr/bin/netpgpkeys --ssh-keys --sshkeyfile=/etc/ssh/ssh_host_rsa_key.pub --list-keys --hash=md5 1 key pub 1024/RSA (Encrypt or Sign) fcdd1c608bef4c4b 2008-08-11 Key fingerprint: e935 902d ebf1 76ba fcdd 1c60 8bef 4c4b uid osx-vm1.crowthorne.alistaircrooks.co.uk (/etc/ssh/ssh_host_rsa_key.pub) <root@osx-vm1.crowthorne.alistaircrooks.co.uk>
% ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub 1024 e9:35:90:2d:eb:f1:76:ba:fc:dd:1c:60:8b:ef:4c:4b /etc/ssh/ssh_host_rsa_key.pub (RSA) %
show more ...
|
#
8755cbec |
| 16-May-2010 |
agc <agc@NetBSD.org> |
When setting up res (results), errs (error) and outs (outputs) streams, change the pre-defined stdio streams to be denoted by "<stdout>" and "<stderr>", to distinguish them from file names.
In netpg
When setting up res (results), errs (error) and outs (outputs) streams, change the pre-defined stdio streams to be denoted by "<stdout>" and "<stderr>", to distinguish them from file names.
In netpgpkeys(1), send the default "res" (results) stream to stdout, rather than stderr. Requested by Anon Ymous (and makes perfect sense).
show more ...
|
#
763a92f6 |
| 08-May-2010 |
agc <agc@NetBSD.org> |
create the home directory, if it doesn't exist, in a slightly less opaque manner
|
#
d10356af |
| 14-Apr-2010 |
agc <agc@NetBSD.org> |
allow the user to pass the equivalent of the gecos information into the key generation function.
|
#
5aae2c74 |
| 13-Mar-2010 |
agc <agc@NetBSD.org> |
Changes to 2.99.1/20100313
+ add functionality to parse basic signature subkeys + in doing so, add expiration of keys + at the same time, add revocation of keys + recognise the primary user id, and
Changes to 2.99.1/20100313
+ add functionality to parse basic signature subkeys + in doing so, add expiration of keys + at the same time, add revocation of keys + recognise the primary user id, and use it when displaying user ids + recognise self signed keys and subkeys + rework the indentation of output + add the --list-sigs [userid] option to netpgpkeys(1) + use memcmp(3) rather than strcmp(3) when checking binary user ids to be exported + add expiration display to subkey signature output + update libnetpgp library version major number to 3
show more ...
|
#
b15ec256 |
| 05-Mar-2010 |
agc <agc@NetBSD.org> |
Update netpgp to version 1.99.20/20100304 - portability improvements, and bug fixes:
Changes to 1.99.20/20100304
+ move args to some functions around to be consistent + use uint*_t where appropr
Update netpgp to version 1.99.20/20100304 - portability improvements, and bug fixes:
Changes to 1.99.20/20100304
+ move args to some functions around to be consistent + use uint*_t where appropriate + fix bug in verify memory + add documentation to manual pages to show how to do combined signing/encryption and decryption/verification + make verification of ascii-armoured memory work the same as binary + eliminate use of strdup(3), strcasecmp(3), and strptime(3). NetBSD/pkgsrc PR 42922 applies - need to define _XOPEN_SOURCE and _BSD_SOURCE for newer linux platforms with glibc 2.10.1. solved a bit differently, by implementing strdup(3) and strcasecmp(3) independently, and using regexps to avoid calling strptime(3).
show more ...
|
#
600b302b |
| 06-Feb-2010 |
agc <agc@NetBSD.org> |
Changes to 1.99.16/20100205
+ minor simplifications to netpgp(1) internally + fix a bug in netpgp_verify_file where a non-existent file while listing packets would cause a SIGSEGV + add duration a
Changes to 1.99.16/20100205
+ minor simplifications to netpgp(1) internally + fix a bug in netpgp_verify_file where a non-existent file while listing packets would cause a SIGSEGV + add duration arg to netpgp(1), and check for validity when verifying signatures + add birthtime arg to netpgp(1), and check for validity when verifying signatures + add netpgp commands to print pubkey, if desired + allow the passphrase for the signature to be taken from --pass-fd + get rid of static indent value when printing packet contents + print signature validity times when verifying a file's signature
show more ...
|
#
9e63cf3f |
| 14-Dec-2009 |
agc <agc@NetBSD.org> |
Prepare for a new netpgp-20091210 portable release.
Apart from infrastructure changes, there are the following functional ones:
+ Update to version 20091210
+ provide a new netpgp_match_list_keys(
Prepare for a new netpgp-20091210 portable release.
Apart from infrastructure changes, there are the following functional ones:
+ Update to version 20091210
+ provide a new netpgp_match_list_keys(3) function to perform a regular-expression based search of all the keys in the keyring. If no pattern is specified to match, then all keys are returned.
+ provide a new netpgp_set_homedir(3) function, and use it to set the home directory from the library, rather than individually in all the programs which use the library
+ provide a new netpgp_incvar(3) function which will add a constant increment (which may be negative) to the value of an internal variable. This is primarily used for the verbosity level within the library, and is again a movement of the function into the library from the individual programs which use the library
+ move to the specification of an ssh key file by internal variable, rather than the directory holding an ssh key file
+ autoconf infrastructure changes
+ take a hammer to the _GNU_SOURCE definitions problems
+ don't rely on strnlen(3) being present everywhere
show more ...
|
#
93d262f9 |
| 07-Dec-2009 |
agc <agc@NetBSD.org> |
+ The internal variable "sshetcdir" has been renamed to "sshkeydir"
+ Take advantage of the new regular expression searching methods
|
#
91c29c74 |
| 05-Dec-2009 |
agc <agc@NetBSD.org> |
Add the ability to use ssh host keys (on the fly) to provide RSA keys.
These keys can be used in the same way as normal PGP keys - to sign, verify, encrypt and decrypt files and data.
% cp configu
Add the ability to use ssh host keys (on the fly) to provide RSA keys.
These keys can be used in the same way as normal PGP keys - to sign, verify, encrypt and decrypt files and data.
% cp configure a % sudo netpgp --ssh-keys --sign --userid 1e00404a a Password: pub 1024/RSA (Encrypt or Sign) 040180871e00404a 2008-08-11 Key fingerprint: c4aa b385 4796 e6ce 606c f0c2 0401 8087 1e00 404a % sudo chmod 644 a.gpg % netpgp --ssh-keys --verify a.gpg netpgp: default key set to "C0596823" can't open '/etc/ssh/ssh_host_rsa_key' Good signature for a.gpg made Fri Dec 4 23:04:36 2009 using RSA (Encrypt or Sign) key 040180871e00404a pub 1024/RSA (Encrypt or Sign) 040180871e00404a 2008-08-11 Key fingerprint: c4aa b385 4796 e6ce 606c f0c2 0401 8087 1e00 404a uid osx-vm1.crowthorne.alistaircrooks.co.uk (/etc/ssh/ssh_host_rsa_key.pub) <root@osx-vm1.crowthorne.alistaircrooks.co.uk> % uname -a NetBSD osx-vm1.crowthorne.alistaircrooks.co.uk 5.99.20 NetBSD 5.99.20 (ISCSI) #0: Wed Oct 7 17:16:33 PDT 2009 agc@osx-vm1.crowthorne.alistaircrooks.co.uk:/usr/obj/i386/usr/src/sys/arch/i386/compile/ISCSI i386 %
The ssh host keys do not need to be manipulated in any way - the information is read from existing files.
show more ...
|
#
ad7bc21d |
| 19-Nov-2009 |
agc <agc@NetBSD.org> |
Commit some changes that have been in a private tree for a while:
+ add a netpgp library function - netpgp_get_key(3) - to print a specific key + add functionality to call this function in netpgpkey
Commit some changes that have been in a private tree for a while:
+ add a netpgp library function - netpgp_get_key(3) - to print a specific key + add functionality to call this function in netpgpkeys(1) + add test for netpgp_get_key + add a verbose switch to the tst script + add netpgp functions to expose the memory signing and verification functions - netpgp_sign_memory(3) and netpgp_verify_memory(3) + coalesced signing and verification ops file functions
show more ...
|