Skip to content

Instantly share code, notes, and snippets.

@mathershifter
Last active May 1, 2021 02:28
Show Gist options
  • Save mathershifter/f537a46e220a5f194e2bccf3f0d61a70 to your computer and use it in GitHub Desktop.
Save mathershifter/f537a46e220a5f194e2bccf3f0d61a70 to your computer and use it in GitHub Desktop.
gnmi-self-signed-cert
! **Make sure to change the common-name to match your environment**
security pki certificate generate self-signed switch.crt key switch.key generate rsa 2048 validity 30000 parameters common-name myswitch.lab.lan
!
configure
!
management security
ssl profile SELFSIGNED
certificate switch.crt key switch.key
!
management api gnmi
transport grpc default
ssl profile SELFSIGNED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment