Fix for certificate download works in AzureStack by saving certificate data as binary file (#496)
Fix for certificate download works in AzureStack by saving certificate data as binary file (#496)

* Fix for wrong decoding of certificate recieved from metadata server

* Fixing bug to make sure certificate data is saved as a binary file instead of a text file

rjschwei/WALinuxAgent,Azure/WALinuxAgent,andyliuliming/WALinuxAgent,Azure/WALinuxAgent,andyliuliming/WALinuxAgent,hglkrijger/WALinuxAgent,hglkrijger/WALinuxAgent,rjschwei/WALinuxAgent