Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile:14: recipe for target 'gencerts' failed #31

Open
k8s19 opened this issue Aug 1, 2019 · 5 comments
Open

Makefile:14: recipe for target 'gencerts' failed #31

k8s19 opened this issue Aug 1, 2019 · 5 comments

Comments

@k8s19
Copy link

k8s19 commented Aug 1, 2019

Below error reported when doing custom metric:

~/go/k8s-prom-hpa$ sudo make certs
Generating TLS certs
Using default tag: latest
latest: Pulling from cfssl/cfssl
Digest: sha256:525005bc4e39d61a2302490329e414eab13ee7ec3edf261df5da68ff65cb506b
Status: Image is up to date for cfssl/cfssl:latest
Can't load /home/ubuntu/.rnd into RNG
139813639434688:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/ubuntu/.rnd
Generating a RSA private key
.................+++++
........................................................................................................+++++
writing new private key to 'metrics-ca.key'

Failed to load config file: {"code":5200,"message":"could not read configuration file"}Failed to parse input: unexpected end of JSON input
Makefile:14: recipe for target 'gencerts' failed
make: *** [gencerts] Error 1

@dimanzt
Copy link

dimanzt commented Feb 3, 2021

I have the same issue? Is there a solution to this? I am using CentOS

@dimanzt
Copy link

dimanzt commented Feb 3, 2021

make certs
Generating TLS certs
Using default tag: latest
latest: Pulling from cfssl/cfssl
Digest: sha256:c21e852f3904e2ba77960e9cba23c69d9231467795a8a160ce1d848e621381ea
Status: Image is up to date for cfssl/cfssl:latest
docker.io/cfssl/cfssl:latest
Generating a 2048 bit RSA private key
..........................+++
.............+++
writing new private key to 'metrics-ca.key'

Failed to load config file: {"code":5200,"message":"could not read configuration file"}Failed to parse input: unexpected end of JSON input
make: *** [gencerts] Error 1

@PavanMakadia
Copy link

PavanMakadia commented Feb 26, 2021

Is there any update about this?
I am facing the same issue with Linux here.

@PavanMakadia
Copy link

Never mind ! I solved issue by using old version (1.3.2) of docker image cfssl/cfssl in Makefile.

@deadjoker
Copy link

using old version doesn't solve my issue on CentOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants