Skip to content

Raspberrypi HSM

Maurice1995 edited this page Jul 19, 2019 · 1 revision

Status

This step by step guide is structured in such a way that it is easily understandable. A more advanced user should be able to do a few steps at once.

Releases

This is the repo you will have to clone to your RPI here

Building

  1. Flash raspbian buster lite onto an SD card
  2. Insert SD card into RPI4
  3. Plugin preprovisioned SecureElement on correct Pins of RPI4

Riddle&Code secure element on Raspberry Pi

  1. Power on RPI4
  2. raspberry login: pi
  3. Password: raspberry
  4. Activate network via: sudo raspi-config
  5. Activate i2c via: raspi-config
  6. Activate ssh
  7. sudo apt update
  8. sudo apt upgrade
  9. sudo apt install -y i2c-tools cmake git libusb-1.0-0-dev libudev-dev python3-pip
  10. Test with crypino connected i2c via: i2cdetect -y 1
  11. This has to show that address 50 and 60 are active
  12. git clone https://github.com/MicrochipTech/cryptoauthtools.git
  13. cd cryptoauthtools/
  14. sudo pip3 install cryptoauthlib
  15. cd /python/examples
  16. sudo pip3 install -r requirements.txt

Test if communication with SE is working:

  1. cd cryptoauthtools/python/examples
  2. python3 sign_verify.py -i i2c
  3. This is the result:

Public key verification example

Clone this wiki locally