# Modify global-cert

Modify the configuration of a global-cert

# usage

Usage: oredge cert modify [id] [OPTIONS]

OPTIONS:
    --enabled bool                     true or false.
    --label string                     label.
    --priv-key-file string             private key pem file.
    --server-cert-file string          server cert pem file.
    --cert-chain-file string           cert chain pem file.
    --ca-cert string                   ca cert.
    --cert-chain string                cert chain.
    --client-verify bool               true or false.
    --server-cert string               server certificate.
    --priv-key string                  private key.
    --id integer                       id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

--id "global-cert id"

Specify to which global-cert you want to modify.

You can specify it in two method

    oredge global-cert modify 1

or

    oredge global-cert modify --id 1

--enabled "true or false"

Make the global-cert enable or disable.

--label "label string"

You can add a label to this global-cert.

--priv-key-file "file"

Private key file.

--priv-key "priv key string"

This is the same as --priv-key-file, but the argument value is the content of private key.

Only one of --priv-key-file and --priv-key can be set.

--server-cert-file "file"

Server cert file.

--server-cert "server cert string"

This is the same as --server-cert-file, but the argument value is the content of server cert.

Only one of --server-cert-file and --server-cert can be set.

--cert-chain-file "file"

Cert chain file.

--cert-chain "cert chain string"

This is the same as --cert-chain-file, but the argument value is the content of cert chain.

Only one of --cert-chain-file and --cert-chain can be set.

--client-verify "true or false"

Wheather to do client verify.

# example

  1. disable a global-cert.
# oredge cert modify 1 --enable false
OK
  1. modify private key of a global cert.
# oredge cert modify 1 --priv-key-file test.key 
OK
  1. modify cert chain of a global cert.
# oredge cert modify 1 --cert-chain-file chain.crt 
OK