cloudflare / cfssl

CFSSL: Cloudflare's PKI and TLS toolkit
https://cfssl.org/
BSD 2-Clause "Simplified" License
8.67k stars 1.1k forks source link

panic: could not locate box "static" #617

Closed gambol99 closed 8 years ago

gambol99 commented 8 years ago

How do you fix the 'static' panic issue? .. i've tried creating a directory, setting -uselocal=true ... it seems to always panic

/usr/bin/cfssl -loglevel=1 serve -config /etc/cfssl/cfssl.json -ca /opt/ci/certs/ca.pem -ca-key /opt/ci/certs/ca-key.pem -ca-bundle=/etc/ssl/certs/ca-bundle.crt
2016/06/12 21:58:50 [ERROR] platform metadata failed to load: open /etc/cfssl/ca-bundle.crt.metadata: no such file or directory
2016/06/12 21:58:50 [INFO] Initializing signer
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/bundle' endpoint
2016/06/12 21:58:50 [ERROR] intermediate bundle failed to load: open /etc/cfssl/int-bundle.crt: no such file or directory
2016/06/12 21:58:50 [WARNING] endpoint '/api/v1/cfssl/bundle' is disabled: {"code":3001,"message":"open /etc/cfssl/int-bundle.crt: no such file or directory"}
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/sign' endpoint
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/newcert' endpoint
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/newkey' endpoint
2016/06/12 21:58:50 [INFO] setting up key / CSR generator
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/init_ca' endpoint
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/scan' endpoint
2016/06/12 21:58:50 [INFO] Setting up '/api/v1/cfssl/scaninfo' endpoint
2016/06/12 21:58:50 [INFO] Setting up '/' endpoint
panic: could not locate box "static"

# tried creating the file ... i also use -uselocal=true|false ... it always panics
[root@eb5cdc471972 cfssl]# ls
static
timowevel1 commented 3 years ago

How did you fix it?