Thanks for this.
I'm in the process of swapping out a switch from our network. Just couldn't figure out how those keys were generated on the old switch. I was sure it wasn't SSH.... but did not think to check if it was HTTPS. Your post really helped...