-
Notifications
You must be signed in to change notification settings - Fork 974
Closed
Description
- Program: dnsdist
- Issue type: Bug report
Short description
getTSEnd() and getTSStart() are supposed to return unix timestamps of the start- and end-date of the dnscrypt certificates, but the values are wrong.
Environment
- Operating system: Archlinux
- Software version: dnsdist 0.0.g6c3281444
- Software source: dnsdist-git from AUR
Steps to reproduce
- Setup dnsdist with dnscrypt and certificates in place, according to the docs
- Run the following commands on the console:
> showDNSCryptBinds()
# Address Provider Name Serial Validity P. Serial P. Validity
0 [::1]:8443 2.dnscrypt-cert.loca 12 2017-07-08 23:14:41 11 2017-07-08 22:37:48
> getDNSCryptBind(0):getCurrentCertificate():getSerial()
12
> getDNSCryptBind(0):getOldCertificate():getSerial()
11
So let's check the
Expected behaviour
> getDNSCryptBind(0):getCurrentCertificate():getTSEnd()
1499548481
> getDNSCryptBind(0):getOldCertificate():getTSEnd()
1499546268
Actual behaviour
> getDNSCryptBind(0):getCurrentCertificate():getTSEnd()
1095459161
> getDNSCryptBind(0):getOldCertificate():getTSEnd()
2621595993