项目作者: nshttpd

项目描述 :
command line tool to create API Keys for OCI tenancies
高级语言: Go
项目地址: git://github.com/nshttpd/oci-api-keygen.git
创建时间: 2018-01-28T17:32:34Z
项目社区:https://github.com/nshttpd/oci-api-keygen

开源协议:BSD 3-Clause "New" or "Revised" License

下载


oci-api-keygen

In order to use the Oracle Compute Infrastructure API a
user must generate a key to upload into the web console. This key is used to authenticate to the API for a specific
tenancy for tools such as
Terraform or other third-party or home build tools.

The instructions for creating
these keys is a multi step process involving openssl and command line while keeping track of the files that are
generated. This tool handles all of that for you. It’ll generate the private and public key along with keeping
track of the tenancies they are created for and the fingerprints of the keys.

Installation

The usual.

go get -u github.com/nshttpd/oci-api-keygen

At some point in the future binaries for different platorms will be provided.

Usage

The default location for the public and private keys along with a configuration file will be ~/.oci/ where most
other things associated with OCI are stored. This can be overridden with a --config parameter and the keys
will be stored in the same directory as where the config file is set to.

The basics are :

Create

create a set of keys for a tenancy

oci-api-keygen create [tenancy]

List

List all of the tenancies that have had keys generated for them

oci-api-keygen list

Show fingerprint for a tenancy

oci-api-keygen list [tenancy]

Delete

Delete all the artifacts for a tenancy and remove it from the config file.

oci-api-keygen delete [tenancy]