提交 a791bc16 编写于 作者: Y YiLin.Li 提交者: jia zhang

runectl && sgx-tools: rename runectl as sgx-tools.

Signed-off-by: NYilin Li <YiLin.Li@linux.alibaba.com>
上级 27cef44a
.PHONY: all install clean uninstall rpm
export INCLAVARE_CONTAINERS_VERSION := $(shell cat ./VERSION)
components := rune shim runectl
components := rune shim sgx-tools
rpm_release_components := rune shim
all:
......
......@@ -40,8 +40,8 @@ One typical class of enclave runtime implementations is based on library OSes. C
In addition, you can write your own enclave runtime with any programming language and SDK (e.g, [Intel SGX SDK](https://github.com/intel/linux-sgx)) you prefer as long as it implements Enclave Runtime PAL API.
### runectl
`runectl` is a commandline tool, used to interact Intel SGX aesm service to retrieve various materials such as launch token, Quoting Enclave's target information and enclave quote. Refer to [this guide](https://github.com/alibaba/inclavare-containers/blob/master/runectl/README.md) for the details about its usage.
### sgx-tools
`sgx-tools` is a commandline tool, used to interact Intel SGX aesm service to retrieve various materials such as launch token, Quoting Enclave's target information and enclave quote. Refer to [this guide](https://github.com/alibaba/inclavare-containers/blob/master/sgx-tools/README.md) for the details about its usage.
---
......
......@@ -35,7 +35,7 @@ $(OUTPUT)/encl.ss: $(OUTPUT)/encl.bin $(OUTPUT)/signing_key.pem
$(OUTPUT)/sgxsign signing_key.pem $(OUTPUT)/encl.bin $(OUTPUT)/encl.ss
$(OUTPUT)/encl.token: $(OUTPUT)/encl.ss
runectl gen-token --signature encl.ss --token $@
sgx-tools gen-token --signature encl.ss --token $@
$(OUTPUT)/sgxsign: sgxsign.c
$(CC) -I../include -o $@ $< -lcrypto
......
......@@ -2,8 +2,8 @@ The files in this directory are used to implement a skeleton enclave runtime in
---
# Install runectl
Refer to [this guide](https://github.com/alibaba/inclavare-containers/tree/master/runectl).
# Install sgx-tools
Refer to [this guide](https://github.com/alibaba/inclavare-containers/tree/master/sgx-tools/README.md).
---
......
......@@ -3,7 +3,7 @@ EXTRA_FLAGS ?=
EXTRA_LDFLAGS ?=
DESTDIR ?=
APP := runectl
APP := sgx-tools
.DEFAULT: $(APP)
.PHONY: clean test lint install uninstall
......
# runectl
# sgx-tools
## Introduction
`runectl` is a command line tool for inclavare-containers.
- Given the signature file of an Enclave, `runectl gen-token` command can generate the corresponding token file from aesmd service.
- `runectl gen-qe-target-info` command can generate Quoting Enclave's target information file from aesm service.
- Given the report file of an Enclave, `runectl gen-quote` command can generate quote file from aesm service.
`sgx-tools` is a command line tool for inclavare-containers.
- Given the signature file of an Enclave, `sgx-tools gen-token` command can generate the corresponding token file from aesmd service.
- `sgx-tools gen-qe-target-info` command can generate Quoting Enclave's target information file from aesm service.
- Given the report file of an Enclave, `sgx-tools gen-quote` command can generate quote file from aesm service.
## Install Intel `aesmd` service
### Hardware requirements
......@@ -33,7 +33,7 @@ $ sudo make uninstall
```
## Test
### `runectl gen-token` test
### `sgx-tools gen-token` test
```
$ make test
```
......
package main // import "github.com/inclavare-containers/runectl"
package main // import "github.com/inclavare-containers/sgx-tools"
import (
"github.com/opencontainers/runc/libenclave/intelsgx"
......@@ -15,7 +15,7 @@ var generateQeTargetInfoCommand = cli.Command{
EXAMPLE:
For example, save the target information file about Quoting Enclave retrieved from aesmd:
# runectl gen-qe-target-info --targetinfo foo`,
# sgx-tools gen-qe-target-info --targetinfo foo`,
Flags: []cli.Flag{
cli.StringFlag{
Name: "targetinfo",
......
package main // import "github.com/inclavare-containers/runectl"
package main // import "github.com/inclavare-containers/sgx-tools"
import (
"fmt"
......@@ -18,7 +18,7 @@ var generateQuoteCommand = cli.Command{
EXAMPLE:
For example, generate the quote file according to the given local report file:
# runectl gen-quote --report foo.rep`,
# sgx-tools gen-quote --report foo.rep`,
Flags: []cli.Flag{
cli.StringFlag{
Name: "report",
......
package main // import "github.com/inclavare-containers/runectl"
package main // import "github.com/inclavare-containers/sgx-tools"
import (
"fmt"
......@@ -20,7 +20,7 @@ var generateTokenCommand = cli.Command{
EXAMPLE:
For example, generate the token file according to the given signature file:
# runectl gen-token --signature foo.sig`,
# sgx-tools gen-token --signature foo.sig`,
Flags: []cli.Flag{
cli.StringFlag{
Name: "signature",
......
module github.com/inclavare-containers/runectl
module github.com/inclavare-containers/sgx-tools
go 1.14
......
package main // import "github.com/inclavare-containers/runectl"
package main // import "github.com/inclavare-containers/sgx-tools"
import (
"fmt"
......@@ -17,12 +17,12 @@ var version = ""
// and will be populated by the Makefile
var gitCommit = ""
const usage = `runectl command line tool
const usage = `sgx-tools command line tool
`
func main() {
app := cli.NewApp()
app.Name = "runectl"
app.Name = "sgx-tools"
app.Usage = usage
var ver []string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册