Nrejve

json1

Jan 5th, 2021
460
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  
  3.  cat > ca-config.json << EOF
  4.  {
  5.    "signing": {
  6.      "default": {
  7.        "expiry": "8760h"
  8.      },
  9.      "profiles": {
  10.        "kubernetes": {
  11.          "usages": ["signing", "key encipherment", "server auth", "client auth"],
  12.          "expiry": "8760h"
  13.        }
  14.      }
  15.    }
  16.  }
  17.  EOF
  18.  
  19.  cat > ca-csr.json << EOF
  20.  {
  21.    "CN": "Kubernetes",
  22.    "key": {
  23.      "algo": "rsa",
  24.      "size": 2048
  25.    },
  26.    "names": [
  27.      {
  28.        "C": "US",
  29.        "L": "Portland",
  30.        "O": "Kubernetes",
  31.        "OU": "CA",
  32.        "ST": "Oregon"
  33.      }
  34.    ]
  35.  }
  36.  EOF
  37.  
  38.  cfssl gencert -initca ca-csr.json | cfssljson -bare ca
  39.  
  40.  }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×