I\'m using crypto/rsa, and trying to find a way to properly save and load a key. Is there a correct way to create a []byte from an rsa.P
crypto/rsa
[]byte
rsa.P
FYI: I polished up @David W 's answer and put it in a tiny Go Module. https://github.com/rokk4/gorsapemhelpers