cloudflare / cloudflare/cfssl

certsdb sqlite data_source should be relative to db-config

Open
#1,099 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
9.5k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

With the following directory structure:
```
.
├── ca
│   ├── cert.csr
│   ├── cert-key.pem
│   ├── cert.pem
│   └── request.json
├── certs.db
├── db-config.json
└── example.com
├── cert.csr
├── cert-key.pem
└── request.json
```

If I'm in the `example.com` directory, and want to generate a certificate with:
```
cfssl sign -ca ../ca/cert.pem -ca-key ../ca/cert-key.pem -config ../../config.json -profile server -db-config ../db-config.json cert.csr
```

The db-config.json file must have the following:

```
{"driver":"sqlite3","data_source":"../certs.db"}
```

Ideally certs.db would be relative to db-config.json though, then the db-config.json file could be:

```
{"driver":"sqlite3","data_source":"certs.db"}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.