Skip to content

Cannot connect GNMI device using PEM format key #2355

@ihrasko

Description

@ihrasko

Describe the bug
GNMI app is not able to use PEM encoded client keys. We have to manually transform them to RSA format.

Branch
main

To Reproduce

  1. Use the script lighty-modules/lighty-gnmi/lighty-gnmi-connector/src/main/scripts/generate_certs.sh to generate client keys for GNMI connection over TLS.
  2. Run GNMI simulated device with configuration to use newly generated certs and keys.
  3. Add newly generated certs and keys to controller's keystore via RESTCONF.

For previous steps please follow https://github.com/PANTHEONtech/lighty/blob/main/lighty-examples/lighty-gnmi-community-restconf-app/README.md.

  1. Add new GNMI device to topology with correctly set keystore-id.
  2. Device is not connected - we are even missing the connection status in GNMI topology.

Expected behavior
Device is successfully connected with PEM encrypted key.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions