@Louis_Frolio  can you please suggest . 

what value should i store in private key, just the part between begin and end. As I am saving that only still getting error.