Skip to content

create-index option and file location #102

@uggyuggy

Description

@uggyuggy

Hi,

Thank you for the last release !

When using the create-index option

I noticed the ct_index.json is created into the current directory (whatever the location is set into the config file)

$ tail -1 config.yml
    ct_index_file: "/tmp/ct_index.json"
$

$ ./certstream-server-go_1.9.0_linux_amd64 create-index
2026/04/08 17:13:10 config.go:133: Using config file: config.yml
...
2026/04/08 17:13:22 ct-watcher.go:303: Index file saved to ct_index.json

$  ls ct_index.json
ct_index.json
$  ls /tmp/ct_index.json
ls: cannot access '/tmp/ct_index.json': No such file or directory

Suggestion:

As the config file is used (Using config file: config.yml), would it be better to create the index file where the config file tell the file should be located ?
(And keep creating in current directory if there is no ct_index_file setting into the config file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions