Estimated Reading time: 2 minutes
|
Last modified: 2021-12-31, 11:27:28 amcert
Usage: oredge cert ACTION [OPTIONS]
ACTION:
create
list
show
modify
delete
help
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Create Cert
Usage: oredge cert create [http] [OPTIONS]
OPTIONS:
--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 cert.
--global-cert integer global cert.
--priv-key string private key.
--server-cert string server certificate.
--http integer http id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge cert create 3 --label test --priv-key-file test.key --server-cert-file test.crt
ID: 3-9
List Cert
Usage: oredge cert list [http] [OPTIONS]
OPTIONS:
--page integer page, 1(default).
--page-size integer page size, 20(default).
--http integer http id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge cert list --http 3
ID LABEL DOMAINS ENABLED
3-9 test test.com true
3-8 test.com true
Show Cert
Usage: oredge cert show [id] [OPTIONS]
OPTIONS:
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge cert show 3-9
ID : 3-9
LABEL :
DOMAINS : test.com
ENABLED : true
SERVER CERT: -----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
Modify Cert
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 cert.
--global-cert integer global cert.
--priv-key string private key.
--server-cert string server certificate.
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge cert modify 3-9 --enable true
OK
Delete Cert
Usage: oredge cert delete [id] [OPTIONS]
OPTIONS:
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge cert delete 3-9
OK