vault-pki-backend-venafi | Venafi PKI Secrets Engine plugin for HashiCorp Vault | TLS library

 by   Venafi Go Version: v0.12.1 License: MPL-2.0

kandi X-RAY | vault-pki-backend-venafi Summary

kandi X-RAY | vault-pki-backend-venafi Summary

vault-pki-backend-venafi is a Go library typically used in Security, TLS applications. vault-pki-backend-venafi has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

This solution enables HashiCorp Vault users to have certificate requests fulfilled by the Venafi Trust Protection Platform or Venafi as a Service ensuring compliance with corporate security policy and providing visibility into certificate issuance enterprise wide.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              vault-pki-backend-venafi has a low active ecosystem.
              It has 51 star(s) with 20 fork(s). There are 24 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 25 have been closed. On average issues are closed in 80 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of vault-pki-backend-venafi is v0.12.1

            kandi-Quality Quality

              vault-pki-backend-venafi has 0 bugs and 0 code smells.

            kandi-Security Security

              vault-pki-backend-venafi has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vault-pki-backend-venafi code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vault-pki-backend-venafi is licensed under the MPL-2.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              vault-pki-backend-venafi releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 4026 lines of code, 155 functions and 20 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed vault-pki-backend-venafi and discovered the below as its top functions. This is intended to give you an instant insight into vault-pki-backend-venafi implemented functionality, and help decide if they suit your requirements.
            • formRequest creates a certificate request .
            • pathRoles is used to setup the user s roles
            • pathCredentials returns the required credentials for the backend
            • isDNSNamesCorrect returns true if two names are correct .
            • pathVenafiCertEnroll is used to validate a certificate
            • getHTTPClient returns an HTTP client for the certificate bundle
            • Validate role entry
            • createConfigFromFieldData creates a config from field data
            • pathonenCertSign creates a security certificate path for the given certificate
            • Backend returns a logical backend
            Get all kandi verified functions for this library.

            vault-pki-backend-venafi Key Features

            No Key Features are available at this moment for vault-pki-backend-venafi.

            vault-pki-backend-venafi Examples and Code Snippets

            Venafi PKI Secrets Engine for HashiCorp Vault,Upgrading
            Godot img1Lines of Code : 5dot img1License : Weak Copyleft (MPL-2.0)
            copy iconCopy
            $ vault write sys/plugins/reload/backend plugin=venafi-pki-backend scope=global
            
            Key          Value
            ---          -----
            reload_id    d8180af4-01e0-d4d8-10ce-0daf69fbb6ed
              

            Community Discussions

            QUESTION

            TLS v1.2 Cipher Suites in .NET 6 / GET Request Timeout
            Asked 2022-Mar-30 at 12:52

            I am currently trying to connect to an AWS REST API which requires at least TLS v1.2. The documentation stats that clients must also support cipher suites with perfect forward secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE).

            When sending a GET request using the HttpClient, the connection simply times out. I have set the TLS version explicitely to TLSv1.2 like this:

            ...

            ANSWER

            Answered 2022-Mar-30 at 12:52

            We finally found the reason for this. Windows did not have the required cypher suites enabled. We have used IISCrypto to enable the corresponding cypher suites and all is ok now.

            It looks like it's possible to force .NET to TLS 1.2, even though it was not enabled on the server itself.

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

            QUESTION

            Azure Pipelines local agent failing to connect with SSL error
            Asked 2022-Mar-29 at 19:29

            We have an on premise server (Windows Server 2012 R2) with an Azure Pipelines agent running on it. Today (31st Jan 2022) this agent could not longer connect to our Azure DevOps organisation.

            Judging by the log files, I assume this is because it is trying to connect with an older TLS version, which as of today is no longer available - https://devblogs.microsoft.com/devops/azure-devops-services-to-require-tls-1-2/

            So I followed the instructions on how to make sure TLS 1.2 was enabled, and confirmed my settings in the registry editor and by running the PowerShell script suggested here - https://docs.microsoft.com/en-us/security/engineering/solving-tls1-problem#update-windows-powershell-scripts-or-related-registry-settings

            All seems ok, yet it still fails to connect with the same issue. The machine has been restarted as well. If I try the URL it is requesting in the in built Internet Explorer browser, it fails, but with Chrome it succeeds, so it must still be trying to connect with TLS 1.2, but I don't know why. I've tried reinstalling the agent (with the latest build) as well but it fails on the same error. Any suggestions?

            ...

            ANSWER

            Answered 2022-Jan-31 at 23:27

            Enabling below Cyphers with IISCrypto on the server helped us fix the issue

            Cipher Suites

            TLS 1.2 (suites in server-preferred order) TLS

            • _DHE_RSA_WITH_AES_256_GCM_SHA384 (0x9f) DH 2048 bits FS 256 TLS
            • DHE_RSA_WITH_AES_128_GCM_SHA256 (0x9e) DH 2048 bits FS 128

            This from Vijay's solution

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

            QUESTION

            Fixing git HTTPS Error: "bad key length" on macOS 12
            Asked 2022-Mar-29 at 17:34

            I am using a company-hosted (Bitbucket) git repository that is accessible via HTTPS. Accessing it (e.g. git fetch) worked using macOS 11 (Big Sur), but broke after an update to macOS 12 Monterey. *

            After the update of macOS to 12 Monterey my previous git setup broke. Now I am getting the following error message:

            ...

            ANSWER

            Answered 2021-Nov-02 at 07:12

            Unfortunately I can't provide you with a fix, but I've found a workaround for that exact same problem (company-hosted bitbucket resulting in exact same error). I also don't know exactly why the problem occurs, but my best guess would be that the libressl library shipped with Monterey has some sort of problem with specific (?TLSv1.3) certs. This guess is because the brew-installed openssl v1.1 and v3 don't throw that error when executed with /opt/homebrew/opt/openssl/bin/openssl s_client -connect ...:443

            To get around that error, I've built git from source built against different openssl and curl implementations:

            1. install autoconf, openssl and curl with brew (I think you can select the openssl lib you like, i.e. v1.1 or v3, I chose v3)
            2. clone git version you like, i.e. git clone --branch v2.33.1 https://github.com/git/git.git
            3. cd git
            4. make configure (that is why autoconf is needed)
            5. execute LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/opt/curl/lib" CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/curl/include" ./configure --prefix=$HOME/git (here LDFLAGS and CPPFLAGS include the libs git will be built against, the right flags are emitted by brew on install success of curl and openssl; --prefix is the install directory of git, defaults to /usr/local but can be changed)
            6. make install
            7. ensure to add the install directory's subfolder /bin to the front of your $PATH to "override" the default git shipped by Monterey
            8. restart terminal
            9. check that git version shows the new version

            This should help for now, but as I already said, this is only a workaround, hopefully Apple fixes their libressl fork ASAP.

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

            QUESTION

            npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher
            Asked 2022-Mar-22 at 09:17

            I am getting this warning from github on my npm project build process... I tried searching on the internet and also read the blog link posted by github - but I could not find the solution to it anywhere. Am I missing something ?

            Warning seen

            npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

            ...

            ANSWER

            Answered 2021-Sep-10 at 15:18

            Besides updating your version of node to an active or current LTS you want to ensure your NPM registry is set to an HTTPS endpoint:

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

            QUESTION

            nexus-staging-maven-plugin: maven deploy failed: An API incompatibility was encountered while executing
            Asked 2022-Feb-11 at 22:39

            This worked fine for me be building under Java 8. Now under Java 17.01 I get this when I do mvn deploy.

            mvn install works fine. I tried 3.6.3 and 3.8.4 and updated (I think) all my plugins to the newest versions.

            Any ideas?

            ...

            ANSWER

            Answered 2022-Feb-11 at 22:39

            Update: Version 1.6.9 has been released and should fix this issue! 🎉

            This is actually a known bug, which is now open for quite a while: OSSRH-66257. There are two known workarounds:

            1. Open Modules

            As a workaround, use --add-opens to give the library causing the problem access to the required classes:

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

            QUESTION

            Unable to log egress traffic HTTP requests with the istio-proxy
            Asked 2022-Feb-11 at 10:45

            I am following this guide.

            Ingress requests are getting logged. Egress traffic control is working as expected, except I am unable to log egress HTTP requests. What is missing?

            ...

            ANSWER

            Answered 2022-Feb-07 at 17:14

            AFAIK istio collects only ingress HTTP logs by default.

            In the istio documentation there is an old article (from 2018) describing how to enable egress traffic HTTP logs.

            Please keep in mind that some of the information may be outdated, however I believe this is the part that you are missing.

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

            QUESTION

            How to force TLS 1.2 usage for PhpMailer 5.2
            Asked 2022-Feb-04 at 09:50

            Recently the 3rd party email service provider I was using made a change. They disabled support for TLS 1.0 and TLS 1.1.

            I provide support for an ancient system that still uses php 5.3 and phpmailer 5.2.

            My tests indicates that TLS 1.2 is enabled.

            But, the PHPMailer code cannot connect to the email server after the disabling of TLS 1.0 and 1.1

            Also, note that I am not a full time php expert.

            Is there a way to make PHPMailer 5.2 use tls 1.2?

            ...

            ANSWER

            Answered 2021-Nov-07 at 14:47

            It's not up to PHPMailer, its up to the version of PHP that you're using to run it, so the solution is to update your PHP version. The major changes relating to TLS were largely in PHP 5.6, so upgrading to that would be a good intermediate point if you're really stuck with this legacy version.

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

            QUESTION

            Error Importing "mongodb" with typescript
            Asked 2022-Jan-25 at 18:41

            When compiling any typescript program that just imports mongodb, i get 12 errors like:

            ...

            ANSWER

            Answered 2022-Jan-06 at 15:48

            I'm unable to reproduce your problem in my local environment, so I think it is a problem probably related to some other package in your project.

            As suggested on this issue, you should try deleting your package-lock.json and generating it again with npm.

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

            QUESTION

            Find the missing module
            Asked 2022-Jan-16 at 19:31

            My question: when building a minimal JRE, how can one make sure that no required module is missing?

            To illustrate the question, here is an example where I want to build a minimal JRE for my project. Let's assume for this example that logback is my only dependency.

            I run the following command to see what modules are required:

            ...

            ANSWER

            Answered 2022-Jan-16 at 19:31

            The JAR you're using there has "no module descriptor" (see first line of output) and thus can't tell you what modules it depends on, so you have to find out yourself. The canonical tool for that is jdeps but it may not be enough.

            Static Dependencies

            I wrote a jdeps tutorial that gets you started, but the interesting bit is this section. The gist is this command:

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

            QUESTION

            vvv.test not loading (nor any of my sites) when running vagrant up
            Asked 2022-Jan-07 at 21:03

            Ever since I've upgraded my Mac to Monteray, I've been having issues with Vagrant.

            Initially, I use to see a vBoxManage error on terminal when running vagrant up. I posted a question on this on SO previously, see here for details.

            Today, I uninstalled VirtualBox again (removed VirtualBox VMs folder and moved application to trash) and reinstalled VirtualBox 6.1.3 for OS X hosts` (link here).

            I then ran vagrant up on terminal and it successfully compiled:

            After seeing the famous green teddy, I tried going to vvv.test but, the page doesn't load. I've tried accessing URLs of sites that have been provisioned before, but they too do not load.

            I've also ran vagrant up --debug, and nothing concerning was seen.

            My Vagrant version is 2.2.19

            Unsure what steps to take next?

            Edit:

            Steps taken:

            1. Have ran vagrant up --provision to provision sites in config.yml file (config.yml file can be seen below)
            2. Have tried to access website-dev.test, page doesn't load
            3. Have tried to access vvv.test, page doesn't load
            4. Have ran vagrant reload --provision and repeated steps 2 and 3, but same results
            5. Have ran vagrant halt and vagrant up and repeated steps 2 and 3, but same results

            I don't believe there's an issue in my config.yml file, as before Monteray update, everything was working fine (and I've made no changes to my yml file since). But, to cover all scenario's, here is my config.yml file:

            ...

            ANSWER

            Answered 2021-Dec-15 at 18:33

            Thanks to guidance from @Tinxuanna, I've managed to solve the issue (finally!).

            For anyone else having similar issues, here's what I did:

            1. Access the /etc/hosts folder
            2. Find file called hosts and open it in a text editor.
            3. Remove the IP addresses related to vagrant (I kept a backup of the original file just in case)
            4. After saving hosts file the IP addresses removed, I ran vagrant up --provision
            5. I then ran vagrant up
            6. Then accessed vvv.test
            7. You're done!

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install vault-pki-backend-venafi

            Before certificates can be issued, you must complete these steps to configure the Venafi secrets engine:.
            Create the directory where your Vault server will look for plugins (e.g. /etc/vault/vault_plugins). The directory must not be a symbolic link. On macOS, for example, /etc is a link to /private/etc. To avoid errors, choose an alternative directory such as /private/etc/vault/vault_plugins.
            Download the latest vault-pki-backend-venafi release package for your operating system. Unzip the binary to the plugin directory. Note that the URL for the zip file, referenced below, changes as new versions of the plugin are released. $ wget https://github.com/Venafi/vault-pki-backend-venafi/releases/download/v0.0.1/venafi-pki-backend_v0.0.1+1_linux.zip $ unzip venafi-pki-backend_v0.0.1+1_linux.zip $ mv venafi-pki-backend /etc/vault/vault_plugins :pushpin: NOTE: Release binaries are built and tested using the latest generally available version of Vault at the time. Backward compatibility with older versions of Vault is typical but not confirmed by testing.
            Update the Vault server configuration to specify the plugin directory: plugin_directory = "/etc/vault/vault_plugins" :pushpin: NOTE: If plugin directory is a symbolic link, Vault responds with an error:bookmark:. If you're configuring on a MacBook, /etc is default symlinked to /private/etc. To prevent the error from occurring, change the plugin_directory to a non-symlinked directory. For example "/private/etc/vault/vault_plugins". If you make this change, keep it in mind as you go through the remaining steps.
            Start your Vault using the server command.
            Get the SHA-256 checksum of the venafi-pki-backend plugin binary: $ SHA256=$(sha256sum /etc/vault/vault_plugins/venafi-pki-backend| cut -d' ' -f1)
            Register the venafi-pki-backend plugin in the Vault system catalog: $ vault write sys/plugins/catalog/secret/venafi-pki-backend \ sha_256="${SHA256}" command="venafi-pki-backend" Success! Data written to: sys/plugins/catalog/secret/venafi-pki-backend :pushpin: NOTE: If you get an error that says "can not execute files outside of configured plugin directory", it's probably because you didn't set the plugin directory correctly with a non-symlinked directory as mentioned earlier. Also, make sure this change is reflected when calling for the SHA-256 checksum.
            Enable the Venafi secrets engine: $ vault secrets enable -path=venafi-pki -plugin-name=venafi-pki-backend plugin Success! Enabled the pki-backend-venafi secrets engine at: venafi-pki/
            Configure a Venafi secret that maps a name in Vault to connection and authentication settings for enrolling certificate using Venafi. The zone is a policy folder for Trust Protection Platform or an Application name and Issuing Template API Alias (e.g. "Business App\Enterprise CIT") for Venafi as a Service. Obtain the access_token and refresh_token for Trust Protection Platform using the VCert CLI (getcred action with --client-id "hashicorp-vault-by-venafi" and --scope "certificate:manage") or the Platform's Authorize REST API method. To see other available options for the Venafi secret after it is created, use vault path-help venafi-pki/venafi/:name. Trust Protection Platform: $ vault write venafi-pki/venafi/tpp \ url="https://tpp.venafi.example" \ access_token="tn1PwE1QTZorXmvnTowSyA==" \ refresh_token="MGxV7DzNnclQi9CkJMCXCg==" \ zone="DevOps\\HashiCorp Vault" \ trust_bundle_file="/opt/venafi/bundle.pem" Success! Data written to: venafi-pki/venafi/tpp :warning: CAUTION: Do not create more than one Venafi secret for the same pair of tokens. Supplying a refresh_token allows the secrets engine to automatically obtain new tokens and operate without interruption whenever the access_token expires. This behavior is important to understand because it may require you to provide a new access_token and refresh_token if you need to modify the Venafi secret in the future (i.e. depending upon whether the original set of tokens has been refreshed by the secrets engine plugin). Having more than one Venafi secret for the same set of tokens would result in all but one Venafi secret being rendered inoperable when the token is refreshed. Venafi as a Service: $ vault write venafi-pki/venafi/vaas \ apikey="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \ zone="Business App\\Enterprise CIT" Success! Data written to: venafi-pki/roles/vaas
            Lastly, configure a role that maps a name in Vault to a Venafi secret for enrollment. To see other available options for the role after it is created, use vault path-help venafi-pki/roles/:name. Trust Protection Platform: $ vault write venafi-pki/roles/tpp \ venafi_secret=tpp \ generate_lease=true store_by=serial store_pkey=true \ allowed_domains=example.com \ allow_subdomains=true Success! Data written to: venafi-pki/roles/tpp Venafi as a Service: $ vault write venafi-pki/roles/vaas \ venafi_secret=vaas \ generate_lease=true store_by=serial store_pkey=true \ allowed_domains=example.com \ allow_subdomains=true Success! Data written to: venafi-pki/roles/vaas :pushpin: NOTE: The ttl and max_ttl role parameters can be used specify the default and maximum allowed validity for certificate requests if the Venafi CA template supports flexible validity periods. If the CA is DigiCert, Entrust, or Microsoft with Trust Protection Platform, the issuer_hint parameter is also required for ttl functionality (e.g. issuer_hint="m" for Microsoft). When issue or sign operations include the ttl parameter it overrides the role default ttl and will be constrained by the role max_ttl. :pushpin: NOTE: The zone role parameter allows multiple zones to be used with a single Venafi secret. If zone is not specified by the role, the zone specified by the Venafi secret applies.

            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

            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 Venafi

            vcert

            by VenafiGo

            VenafiPS

            by VenafiPowerShell

            vcert-python

            by VenafiPython