New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cert2secret

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cert2secret

Turn your TLS certificates into a Kubernetes TLS secret manifest.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cert2secret

Easily generate a Kubernetes TLS secret manifest from a TLS key/certificate pair.

Use case: you want to secure an Ingress specifying a secret containing the TLS key/cert pair.

NOTE: If your goal it's just to create a tls secret in a cluster you can use kubectl instead.

kubectl create secret tls ${CERT_NAME} --key ${KEY_FILE} --cert ${CERT_FILE}

Installation

npm install -g cert2secret

Usage

Usage: cert2secret [options]

Options:
  -V, --version                  output the version number
  -k, --key <key file>           you must specify a TLS key file
  -c, --cert <certificate file>  you must specify a TLS certificate file
  -d --dest <destination>        destination for the generated yaml manifest
  --secretname <secretname>      the name of your certificate used in the secret metadata
  --namespace <namespace>        the namespace for your certificate manifest
  -h, --help                     output usage information

Example

cert2secret -k your-certificate.key -c your-certificate.crt -d ./certificate-manifest.yaml

The command above will generate a file called certificate-manifest.yml with the following content:

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
  namespace: default
data:
  tls.crt: >-
    ...base64 encoded certificate data
  tls.key: >-
    ...base64 encoded key data

Keywords

FAQs

Package last updated on 31 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc