-
Notifications
You must be signed in to change notification settings - Fork 112
certificat file from OSX #10
Comments
These commands worked for me:
|
This is what ended up working for me. pfx file not used, but here for reference. Sourced from: http://ben.lobaugh.net/blog/710/generating-certificates-for-use-with-the-windows-azure-management-api @jeffmendoza I tried your approach but kept getting an error
|
Spent hours trying to figure out how to generate these keys correctly until I finally discovered this issue. This information really needs to be documented somewhere! |
I have followed all the steps you guys mentioned above and also the instructions in Ben Lobaugh post but still can't connect my vagrant to Azure. How finally you solved this issue ?. I am stuck with the error .vagrant.d/gems/gems/azure-0.6.3/lib/azure/base_management/base_management_service.rb:68:invalidate_configuration': Could not read from file '~/path/to/my.cer'. (RuntimeError)`. Thanks |
Figured I wouldn't be the last, which is why I wrote this: |
Thank you very much phiche ! it worked. |
@Phiche thanks for the example project. I've returned to tackling this after a bit of a hiatus, and unfortunately still don't have this working. I get a different behaviour depending on which VM I use. Has anyone tried this with a CentOS image?
one example output: ==> nodeserver: Waiting for SSH
==> nodeserver: Looking for 22
==> nodeserver: Looking for 22
==> nodeserver: Inserting Vagrant public key within guest...
==> nodeserver: Key inserted! Disconnecting and reconnecting using new SSH key...
==> nodeserver: Looking for 22
==> nodeserver: SSH Ready
==> nodeserver: Installing rsync to the VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
yum -y install rsync
Stdout from the command:
yum -y install rsync
exitcode=$?
printf
Stderr from the command: |
I'm pretty sure this is the VM and not the vagrant-azure plugin. The above error was using this: I get a different error using: mkdir -p '/vagrant'
exitcode=$?
printf
Stderr from the command:
So one fails with a yum install and one creating a folder. Unfortunately I don't get a lot of output. I'll add debug information if I can get it to generate some with --debug. |
Closing again. This definitely is due to the VM. |
.vagrant.d/gems/gems/azure-0.6.3/lib/azure/base_management/base_management_service.rb:68:in
validate_configuration': Could not read from file '~/.ssh/azure/azure.cer'. (RuntimeError)`I'm not sure if I'm using the correct command to generate the cert file, so it could be just me.. can't seem to find any links on google to create anything but a .pem file whereas azure says it will only allow me to upload a .cer file.
I've tried:
openssl req -new -x509 -extensions v3_ca -out azure.pem -days 3650
then converted that to a .cer file... also tried the above with just a .cer extension.
The text was updated successfully, but these errors were encountered: