fix for issue #157

fix for issue #157
Merge pull request #159 from AzureAD/pkeyauth-fix-and-updates

fix for issue #157