Generating NTS keys for tests

Gary E. Miller gem at rellim.com
Mon Jul 1 03:28:04 UTC 2019


Yo Ian!

On Sun, 30 Jun 2019 12:35:40 -0500
Ian Bruene via devel <devel at ntpsec.org> wrote:

> I have been trying to write tests for the NTS packet extension code
> in nts_extens.c. Almost all of the functions end up needing to
> encrypt or decrypt something. It is simple enough to feed in random
> data for encryption, but for decryption the various keys and other
> data needs to match up.
> 
> This is a problem because the key generation code requires an SSL 
> context. How do I generate a set of keys that can be used in the
> tests?

Create your own.  Something like this:

https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/

Then ship some test keys with the code.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190630/7d7901e9/attachment.bin>


More information about the devel mailing list