PEM to Hex