Timestamp
How FortiLogger timestamps and signs the daily logs with a KamuSM trusted timestamp or a self-signed certificate.
Timestamp and signing
FortiLogger timestamps and signs the daily logs in one of two ways. You choose the method from the File Signing Method menu on the Sign Settings tab of Tools > Backup / Log-Sign:
- Kamu SM (Tübitak): The digest of the logs is sent to TÜBİTAK KamuSM, which returns an RFC 3161 trusted timestamp.
- Self Signed Certificate: FortiLogger uses its own certificate and the time it gets from time servers.
With both methods, at the end of the day that day’s logs are written to a file and the file’s digest (hash) is taken with SHA256. Older records may have been signed with MD5. If you use the Compress Exported Files option, the file is stored and signed in its compressed form. The signature details are written to a .sign file in the same folder, named after the log file. For choosing the method and the backup destination, see How to meet Law 5651.
1 - Signing with KamuSM
The KamuSM timestamp is obtained by sending the digest of the logs to the TÜBİTAK KamuSM timestamp server (zd.kamusm.gov.tr). If the connection fails, FortiLogger retries up to three times, so the FortiLogger server needs internet access. The API Connection Settings menu has two options:
- Fortilogger Kamu SM Authentication: You don’t need a separate KamuSM account. FortiLogger gets the KamuSM credentials through its own portal account, so a portal user must be defined in FortiLogger and data sending must be on; otherwise signing fails.
- Custom Authentication: If you have your own KamuSM account, enter the host, user name and password. The user name is your KamuSM customer number and must be a number.
Timestamping and signing work like this:
- At the end of the day, all the logs are exported to a file (compressed if you chose so).
- The SHA256 hash of the file is taken.
- The hash is sent to the KamuSM server, which creates the timestamp and returns it to FortiLogger.
- The
.signfile receives one line each for the hash (FILEHASH), the time (TIMESTAMP), the signature (SIGN), the signing method (METHOD) and the hash algorithm (HASHALG, SHA256 by default). - The KamuSM timestamp is also saved next to the data file with
.zdadded to the data file’s name (for examplelog.txt.zd). If you verify with TÜBİTAK Zamane, keep the data file and the.zdfile in the same folder.
2 - Signing with a self-signed certificate
This method uses the certificate on the computer FortiLogger runs on and the time it gets from time servers. Timestamping and signing work like this:
- At the end of the day, all the logs are exported to a file (compressed if you chose so).
- The SHA256 hash of the file is taken.
- The date from a time server is combined with the hash. If no time server can be reached, the file’s last modified time is used.
- A second SHA256 digest of the combined value is taken.
- That digest is signed with the self-signed certificate defined for FortiLogger.
- The
.signfile receives the hash, the time, the signature, the signing method and the hash algorithm. If an earlier KamuSM signature left a.zdfile for the same file, it is deleted.
Split backups
If you set the backup file size limit to anything other than 0, the file is split and every part is signed with the self-signed certificate, whichever method you chose. For details see 5651 log signing options.
Verifying the signature
You verify the signature in FortiLogger with the Check Sign button. The button works only when the backup destination is Server. Details: How to meet Law 5651.
Defined time servers
For the self-signed method, the time comes from the servers below. FortiLogger tries them in random order and uses the first one that answers; the connection is made on TCP port 13 (daytime). You can also define custom time servers: System settings.
- “time-c.nist.gov”
- “nist1-macon.macon.ga.us”
- “nist.netservicesgroup.com”
- “nisttime.carsoncity.k12.mi.us”
- “nist1-lnk.binary.net”
- “wwv.nist.gov”
- “time.nist.gov”
- “utcnist.colorado.edu”
- “utcnist2.colorado.edu”
- “ntp-nist.ldsbc.net”
- “time-nw.nist.gov”
- “nist-time-server.eoni.com”
For the relevant law and regulation, use the links below (in Turkish).
Regulation on Internet Collective Use Providers (Official Gazette: 11.04.2017, No. 30035)
Was this page helpful?
Thanks for your feedback!