Created
December 14, 2019 01:14
-
-
Save manakuro/1623e7464458faf4a87da29a0b062bb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func GetRSAPublicKey() (*rsa.PublicKey, error) { | |
keyData, err := ioutil.ReadFile("id_rsa.pub.pkcs8") | |
if err != nil { | |
return nil, err | |
} | |
return jwt.ParseRSAPublicKeyFromPEM(keyData) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment