No commit activity in last 3 years
No release in over 3 years
Simple NTS(Network Time Security) Client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 0.2.7
 Project Readme

simple_nts_client

Gem Version CI Maintainability

simple_nts_client is CLI that is simple NTS(Network Time Security) Client implementation. This CLI prints the now timestamp got with NTS. Current implementation is based on:

Installation

The gem is available at rubygems.org. You can install it the following:

$ gem install simple_nts_client

Usage

$ simple_nts_client --help
Usage: simple_nts_client [options]
    -s, --server VALUE               NTS-KE server name (default time.cloudflare.com)
    -p, --port VALUE                 NTS-KE port number (default 4460)
    -v, --verbose                    verbose mode       (default false)

You can run it the following:

$ simple_nts_client
2020-10-30 20:00:00 +0900

If you need to access other NTS-KE server or port, you can run it the following:

$ simple_nts_client --server YOURSERVER --port YOURPORT
2020-10-30 20:00:00 +0900

How "simple" client?

  • The CLI supports only AEAD_AES_SIV_CMAC_256 as AEAD algorithms to protect the NTPv4 packet.
  • The CLI sends the first one of the received cookies via the response of the New Cookie for NTPv4 record and discards cookies that didn't send.
  • The CLI just prints the timestamp adjusted by calculated system clock offset.

License

The gem is available as open source under the terms of the MIT License.