Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions golang/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
# Overview

1. [Install Golang](https://golang.org/doc/install) and ensure that your cloned repository is in your GOPATH.
2. Update the following information in the [examples/server_test.go](examples/server_test.go#L20) file.
2. Update the following information in the [examples/credential.yaml](examples/credential.yaml) file.

*NOTE: This information can obtained by logging in to your IBM Cloud account and viewing your Hyper Protect Crypto Serverices (HPCS) instance and IAM information. See the [GREP11 API documentation](https://test.cloud.ibm.com/docs/services/hs-crypto?topic=hs-crypto-grep11-api-ref) for more information about GREP11*.

```Golang
// The following IBM Cloud items need to be changed prior to running the sample program
const address = "<grep11_server_address>:<port>"

var callOpts = []grpc.DialOption{
grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})),
grpc.WithPerRPCCredentials(&util.IAMPerRPCCredentials{
APIKey: "<ibm_cloud_apikey>",
Endpoint: "<https://<iam_ibm_cloud_endpoint>",
Instance: "<hpcs_instance_id>",
}),
}
```
url: "<grep11 server url>"
cert_path: "<client certificate path>"
key_path: "<client key path>"
cacert_path: "ca certificate path"
```

3. `cd $GOPATH/src/github.com/ibm-developer/ibm-cloud-hyperprotectcrypto/golang/examples`
Expand Down
2,269 changes: 1,718 additions & 551 deletions golang/ep11/header_consts.go

Large diffs are not rendered by default.

Loading