mkcert | Create self signed ssl certificates without OpenSSL | TLS library

 by   Subash JavaScript Version: 3.2.0 License: MIT

kandi X-RAY | mkcert Summary

kandi X-RAY | mkcert Summary

mkcert is a JavaScript library typically used in Security, TLS applications. mkcert has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i mkcert' or download it from GitHub, npm.

Create self signed tls certificates without OpenSSL.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mkcert has a low active ecosystem.
              It has 97 star(s) with 7 fork(s). There are 3 watchers for this library.
              There were 1 major release(s) in the last 6 months.
              There are 0 open issues and 1 have been closed. On average issues are closed in 131 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of mkcert is 3.2.0

            kandi-Quality Quality

              mkcert has 0 bugs and 0 code smells.

            kandi-Security Security

              mkcert has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              mkcert code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              mkcert is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              mkcert releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed mkcert and discovered the below as its top functions. This is intended to give you an instant insight into mkcert implemented functionality, and help decide if they suit your requirements.
            • Create a certificate .
            • Generates a certificate .
            • Generate a certificate from the FPT .
            Get all kandi verified functions for this library.

            mkcert Key Features

            No Key Features are available at this moment for mkcert.

            mkcert Examples and Code Snippets

            No Code Snippets are available at this moment for mkcert.

            Community Discussions

            QUESTION

            Using a custom HTTPS cert in Nuxt (but only for dev mode)?
            Asked 2022-Apr-17 at 04:39

            I am using a dependency that requires me to have HTTPS on localhost. I've used the following code in nuxt.config.js to accomplish that:

            ...

            ANSWER

            Answered 2022-Apr-16 at 21:59

            I've used that in the past

            Source https://stackoverflow.com/questions/71897230

            QUESTION

            volume already exists but was not created by Docker Compose
            Asked 2022-Mar-12 at 00:02

            This is what i get after i use ddev start on new or any other projects. I clear all docker images, volumes, etc... and problem repeats again...

            Does anybody has the same problem, does it have any connection with versions:

            • Docker version 20.10.11
            • Docker Compose version 2.2.0
            • ddev version v1.18.0
            ...

            ANSWER

            Answered 2022-Mar-12 at 00:02

            This is worked around in DDEV v1.18.2+ (and v1.19+), please upgrade. It was a bug in docker-compose 2.2.0+ - please see https://github.com/drud/ddev/issues/3404 for context.

            Source https://stackoverflow.com/questions/70163785

            QUESTION

            Is it fine to use the same mkcert certificate for both your frontend and backend?
            Asked 2022-Mar-07 at 08:09

            I'm developing a webapp that uses vite on the frontend for my local testing environment and also a separate API backend.

            I used mkcert to generate a local dev certificate and am using that one for the backend.

            My question is, for my frontend dev environment I also can use a certificate, as shown here in the vite config:

            ...

            ANSWER

            Answered 2022-Mar-07 at 08:09

            Short answer: Yes you can

            Explanation:

            The certificate doesn't make difference of "frontend" or "backend" things.

            It "take" only the FQDN given on creation and generally a certificate is valid for use on a single fully qualified domain name (FQDN), but it's out of scope of this question.

            What I mean is, if you create a certificate for only 127.0.0.1 and you try to load it from 192.168.1.96, you will see the certificate as invalid.

            In your case, as you created the certificate for both local network IP and the public IP, then whatever you load the cert from localhost or 192.168.1.96, the certificate is valid.

            Source https://stackoverflow.com/questions/71370419

            QUESTION

            Errors "incomplete class type 'evp_pkey_st' is not allowed" and "'CRYPTO_mem_leaks' is undefined" on OpenSSL
            Asked 2022-Mar-01 at 17:10

            I'm currently trying to programmatically create public/private key pairs with the OpenSSL (version 1.1.1) library but I cannot compile my program because I'm getting the following errors:

            pointer to incomplete class type "evp_pkey_st" is not allowed

            identifier "CRYPTO_mem_leaks" is undefined

            I know OpenSSL is installed and is being recognized because I have included various OpenSSL header files without issue. The only include giving me a problem is openssl/evp.h which VSCode is telling me cannot be found. Does anyone know how to fix these issues? Thanks.

            ...

            ANSWER

            Answered 2022-Mar-01 at 17:10

            In comments, you say you are compiling for OpenSSL 1.1.1.

            Direct access to OpenSSL struct members, such as in pkey->pkey.rsa, is no longer possible in OpenSSL 1.1.x onward, as OpenSSL has moved away from using typed struct pointers and now uses opaque pointers instead. The reason is so that OpenSSL structs can now change layout between versions without breaking code, something that wasn't really possible before 1.1.0.

            Per OpenSSL's wiki: OpenSSL 1.1.0 Changes

            All structures in libssl public header files have been removed so that they are "opaque" to library users. You should use the provided accessor functions instead

            As such, you now have to use individual getter/setter functions for each member. In this case, I think it is EVP_PKEY_get1_RSA(), eg:

            Source https://stackoverflow.com/questions/71302847

            QUESTION

            Expressjs app - HTTPS shows directory listing instead of site
            Asked 2021-Sep-10 at 06:57

            I have an app currently in development. All works well on my local machine but on my live server I am getting an issue I can't solve between the http and https versions of the site. Anyone know why I am getting a difference between the display of these two domains?

            http://maksemus.tech

            https://maksemus.tech

            I have installed the SSL certificate on the server but have been stuck for days trying to figure out what is happening here.

            Here is what my www file looks like:

            ...

            ANSWER

            Answered 2021-Sep-10 at 06:57

            After lots of debugging I found what was causing this issue. This was caused by Phusion Passengers instantiation of the application.

            It simply uses two different paths when initializing the app. One for http and one for https.

            The standard path it uses for http config is:

            /etc/apache2/conf.d/userdata/std/2_4/YOUR_USERNAME/YOUR_DOMAIN/YOUR_APP_NAME.conf

            Not sure why but Phusion Passenger does not automatically create the correct path for SSL when you register your application in cpanel, meaning it can not find a path for https application config.

            I had to manually create the folders and then copy the config file from the above path to it. It looks like this:

            /etc/apache2/conf.d/userdata/ssl/2_4/YOUR_USERNAME/YOUR_DOMAIN/YOUR_APP_NAME.conf

            If you update one config file you need to update the other as they should be identical.

            The command line from the [cpanel documentation][1] did not work for me because the folders did not exist and were not automatically created when the app was registered.

            The command line I'm referring to from the above documentation is:

            Source https://stackoverflow.com/questions/69126695

            QUESTION

            Android Firefox constantly prompting to Accept Risk for mkcert-created SSL certificate
            Asked 2021-Jul-21 at 05:28

            In my dev laptop I installed an SSL cert using mkcert. Works fine in all desktop browsers. They don't even prompt to accept the "risk" and continue. But in my Android phone on the same LAN (with the dev subdomain in dns) I get that prompt from both Chrome and Firefox. That would be acceptable, except Firefox prompts pretty much every time I return focus to the app. It gets annoying having to click two extra buttons (Advanced then Accept Risk and Continue) for every code change that needs to be tested in all browsers.

            Is there any way to make Android Firefox permanently accept the cert or any other solution?

            ...

            ANSWER

            Answered 2021-Jul-21 at 05:28

            Took a while, but I figured it out!

            First transfer copy of the rootCA.pem cert file from laptop to phone.

            File location found via CLI: mkcert -CAROOT

            Then install the cert file in Android settings, the location of which varies per device and Android version.

            In my phone it was in: Android Settings / General / Lock screen & security / Encryption & credentials / Install from storage

            You might have to restart the phone. Also might have to click TRUST on the cert in Android settings.

            Then enable Firefox secret settings by clicking multiple times on the Firefox logo in the About page, then in secret settings enable "Use third party CA certificates".

            Voila!

            Source https://stackoverflow.com/questions/68433781

            QUESTION

            How to setup local environment to run on https
            Asked 2021-Jun-23 at 11:11

            I am trying to run my React application via https local. I have followed the steps of this tutorial, have installed mkcert correctly and the root of my project currently looks like this:

            ...

            ANSWER

            Answered 2021-Jun-23 at 11:11

            The solution was to amend my package.json file to look like this:

            Source https://stackoverflow.com/questions/68082429

            QUESTION

            ERR_SSL_PROTOCOL_ERROR when accessing webpack DevServer sub-URLs from a different machine
            Asked 2021-Jun-08 at 10:57

            I'm trying to access my web application served using the webpack DevServer from a virtual machine, but I'm able to connect through HTTPS only to the main URL - all sub-URLs fail with ERR_SSL_PROTOCOL_ERROR error.

            Here is my setup:

            I'm running webpack DevServer on a host machine with macOS. My virtual machine is running Windows 10 (VMware Fusion in bridged network mode). Webpack DevServer uses custom self-signed SSL certificates (generated using the mkcert tool).

            Here is my DevServer configuration (@angular-builders/custom-webpack:dev-server):

            ...

            ANSWER

            Answered 2021-Jun-08 at 10:57

            The issue was caused by the latest version of Cisco AnyConnect Secure Mobility Client (4.10) installed on the host computer. After downgrading Cisco AnyConnect software to version 4.9 everything works as expected.

            Source https://stackoverflow.com/questions/67623851

            QUESTION

            After renaming my mac homefolder, I'm getting the follow error when trying to run: ddev start
            Asked 2021-May-19 at 23:00

            I had a requirement to rename my mac homefolder, however now when I try to run: ddev start I'm getting the following error (which is pointing to the older homefolder name gregmercer):

            ...

            ANSWER

            Answered 2021-May-19 at 23:00

            Your mkcert CA has been orphaned.

            Please try mkcert -uninstall and then mkcert -install

            Then edit or remove the existing mkcert_caroot in your ~/.ddev/global_config.yaml

            Source https://stackoverflow.com/questions/67611927

            QUESTION

            DDEV prerelease on Mac M1 with docker tech preview doesn't work - docker broken
            Asked 2021-Apr-14 at 01:58

            I've been using DDEV for around 2 weeks with no issues using custom local domain names which was all working nicely until yesterday where one of my projects crashed.

            Upon restarting DDEV, when trying to go to any custom local domain e.g dash.myproject.com, it results in a 500 nginx error.

            If I go to ip address https://127.0.0.1:56248 My browser auto resolved to http:// and I get:

            ...

            ANSWER

            Answered 2021-Apr-14 at 01:58

            Edit 2021-04-13: The current Docker Desktop Tech Preview for Apple M1 (RC3) works fine with ddev.

            Source https://stackoverflow.com/questions/66818593

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mkcert

            You can install using 'npm i mkcert' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i mkcert

          • CLONE
          • HTTPS

            https://github.com/Subash/mkcert.git

          • CLI

            gh repo clone Subash/mkcert

          • sshUrl

            git@github.com:Subash/mkcert.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TLS Libraries

            mkcert

            by FiloSottile

            v2rayN

            by 2dust

            acme.sh

            by acmesh-official

            nginxconfig.io

            by digitalocean

            v2ray

            by 233boy

            Try Top Libraries by Subash

            Prepros

            by SubashJavaScript

            adburner-dns

            by SubashJavaScript

            sundar-nepal

            by SubashJavaScript

            scratch-console

            by SubashJavaScript

            js-concat

            by SubashJavaScript