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

No certificate file created on mac os. #27

Closed
shivekkhurana opened this issue Sep 9, 2018 · 2 comments
Closed

No certificate file created on mac os. #27

shivekkhurana opened this issue Sep 9, 2018 · 2 comments

Comments

@shivekkhurana
Copy link

Hi @davewasmer,

Thanks for building this amazing project.

I'm trying to generate a certificate for check.local. I do so using the following script :

# index.js
const devcert = require('devcert');
devcert
  .certificateFor("check.local")
  .then(res => {
    console.log(res);
  })
;

The script runs but doesn't complete. Here is the screenshot of the log:
screen shot 2018-09-09 at 10 33 55 pm

Any ideas about what am I doing wrong here ?
I'm running this on Mac OS. Node v8.1.1.

Thanks

@shivekkhurana shivekkhurana changed the title Error at Retrieving devcert's certificate authority credentials : No such file or directory No certificate file created on mac os. Sep 9, 2018
@shivekkhurana
Copy link
Author

Seems related to #26. Following the steps in #22 (as suggested by 26) fixed the issue.

I deleted the entire devcert folder and ran my script again. It seems to have generated the certificate.

@0m15
Copy link

0m15 commented Mar 27, 2019

Just wanted to say thanks for this high value project.
I confirm I had to follow steps on #26 on mac os to make it work properly.
(High Sierra 10.13.6 and Node > 10.9.0)

alias-mac pushed a commit to alias-mac/devcert that referenced this issue Feb 8, 2024
This PR introduces a few environment variables that can be used to prevent devcert from engaging in activities that are hostile to kubernetes-based dev environments (meaning: developing from within a k8 container)

- `DEVCERT_CUSTOM_CA_ROOT_FOLDERS` - a comma-separated list of folders in which a user-signed trust root (to be trusted) should be present
- `DEVCERT_SKIP_POST_CA_REMOVAL_COMMANDS` - abstain from typical efforts to remove user-trusted root CAs from trust roots, as part of the "untrust" operation
- `DEVCERT_SKIP_POST_CA_PLACEMENT_COMMANDS` - abstain from typical efforts to copy a user-trusted root CA into trust roots, as part of the conventional use of the "trust" operation
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

2 participants