Returning block could be nil here:
|
block, _ := pem.Decode(config.Data.KeyCertConf.RSAPrivateKey) |
It leads to "Invalid memory address or nil pointer dereference" error.
pem.Decode(...) function documentation:
Decode will find the next PEM formatted block (certificate, private key etc) in the input. It returns that block and the remainder of the input. If no PEM data is found, p is nil and the whole of the input is returned in rest.