Giter Club home page Giter Club logo

aws-greengrass-pkcs11-provider's Introduction

AWS Greengrass PKCS11 Provider

The AWS Greengrass PKCS11 Provider enables the ability to interact with Trusted Platform Module (TPM) storing IoT thing's private key and certificate to connect to AWS IoT and other AWS services. This PKCS11 provider is meant to run with Greengrass Nucleus as a plugin.

Parameters

This PKCS11 Provider takes the following parameters:

Required

  • name: A unique string identifier for the configuration.
  • library: Absolute path to PKCS11 library on the device.
  • slot: Slot ID of the slot which holds the key. Not to be confused with slot index or slot label.
  • userPin: User pin needed to access the slot.

Start Greengrass with PKCS11 provider plugin

Setup

  • Thing private key and certificate need to be imported to the TPM on the device.
  • config.yaml containing the following additional config:

Sample configuration to bootstrap Greengrass nucleus with the PKCS11 plugin

aws.greengrass.crypto.Pkcs11Provider:
    configuration:
      name: sample_name
      library: /absolute/path/to/library
      slot: 12345
      userPin: abc123

Command to start Greengrass:

sudo -E java -Droot="<root>" -Dlog.store=FILE \
  -jar ./GreengrassCore/lib/Greengrass.jar \
  --aws-region <region> \
  --init-config config.yaml \
  --component-default-user ggc_user:ggc_group \
  --setup-system-service true
  --trusted-plugin <path_to_plugin>/aws.greengrass.crypto.Pkcs11Provider.jar

Get PKCS11 provider plugin through deployment

Setup

  • Thing private key and certificate need to be imported to the TPM on the device.

Create a deployment and merge the parameters as shown below:

{
  "targetArn": "<arn_of_target>",
  "components": {
    "aws.greengrass.crypto.Pkcs11Provider": {
      "componentVersion": "1.0.0",
      "configurationUpdate": {
        "merge": "{\"name\":\"sample_name\",\"library\":\"/absolute/path/to/library\",\"slot\":12345,\"userPin\":\"abc123\"}"
      }
    }
  }

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

aws-greengrass-pkcs11-provider's People

Contributors

mikedombo avatar vaibhavmurkute avatar wikimonkey avatar naikvidish avatar prateek-y avatar jbutler avatar amazon-auto avatar k-khatri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.