2024-10-21 04:32:59 +09:00

36 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GCP + ClearBlade でIoT環境を構築する
https://docs.clearblade.com/iotcore/quick-start
## Registryを作成する
* レジストリのID識別子:任意の名前を付けることができます
* リージョン(サーバーの設置場所):最も近いリージョンを選びます。
* 通信の速度やパフォーマンスに影響
* Pub/Sub(任意): Google CloudのPub/Subサービス/新しいトピック(メッセージの送受信チャンネル)を作成
* デバイスがメッセージを送受信できるようになります。
## デバイスを作成する
* デバイスID:GCPTEST0001
## Credentials資格情報の作成
デバイスの認証に使用する鍵ペアを生成します。
セキュアな通信を確保するために必要です。
デバイスの鍵ペア(公開鍵と秘密鍵)を生成します。
これを使って、デバイスがサーバーとセキュアに通信できるようにします。
```sh
wsl
openssl req -x509 -newkey rsa:2048 -keyout rsa_private.pem -nodes \
-out rsa_cert.pem -subj "/CN=unused"
```
## CA certificatesを設定する