AMT is not using the self-signed certificate configured using RPC-GO local tls command for TLS connection.
Note:
On version AMT 16 and above, you can reproduce it by running the command once. Run the command twice to reproduce it on AMT 15 and below machines.
Steps to reproduce:
Make sure AMT is activated in ACM or CCM either using rpc-go local command
Configure TLS using RPC-GO local command, use the self-signed certificate option
sudo ./rpc configure tls -mode Server
Using MeshCommander, connect to AMT device using TLS option
Notice on MeshCommander that AMT is not using the self-signed certificated created by rpc-go.
AMT is not using the self-signed certificate configured using RPC-GO local tls command for TLS connection.
Note: On version AMT 16 and above, you can reproduce it by running the command once. Run the command twice to reproduce it on AMT 15 and below machines.
Steps to reproduce:
sudo ./rpc configure tls -mode Server
Potential Fix: If TLS is already configured, need to use a PUT TLSCredentialContext call instead of CREATE TLSCredentialContext https://github.com/open-amt-cloud-toolkit/rpc-go/blob/main/internal/local/tls.go#L182