Azure management certificate error in vagrant

≯℡__Kan透↙ 提交于 2020-02-02 16:19:09

问题


I am trying to spin up a VM in Azure using Vagrant. Following this tutorial :

http://blogs.msdn.com/b/tconte/archive/2014/06/19/building-your-ubuntu-php-development-box-on-azure-using-vagrant.aspx?CommentPosted=true#commentmessage

But I got stuck in this line

azure.mgmt_certificate = 'C:\Dev\management_cert.pfx'

The error I got is following

λ vagrant up --provider=azure C:/Users/hoss329549/.vagrant.d/gems/gems/azure-0.6.4/lib/azure/base_management/base_management_service.rb:48:in `rescue in initialize': Management certificate not valid. Error: PKCS12_parse: mac verify failure (RuntimeError)

I have tried to download the publishsettings and renamed extension to pfx but didn't work. Didn't find much blog/articles that talks about this area. How can I solve this issue?

Any advice is greatly appreciated!


回答1:


I resolved the problem by myself. What I did was downloaded the publishsettings file from Azure portal and renamed the file to pfx by keeping only the management certificate xml block into it.



来源:https://stackoverflow.com/questions/28969451/azure-management-certificate-error-in-vagrant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!