Vault 5.1.1 Public Key Issues

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
davenptl
Posts: 9
Joined: Mon Jan 31, 2011 2:23 pm

Vault 5.1.1 Public Key Issues

Post by davenptl » Mon Jan 31, 2011 3:29 pm

I have the SourceGear Vault Server 5.1.1.19215 installed on a Windows Server 2008 (x64) box. I am able to administer the repository without any issues through the web site interface.

Where I am running into an issue is connecting to the repository using the SourceGear Vault Client. I get the following error message: 'Could not get public key from server'

I've looked in the forums and there doesn't seem to be much on the topic. What could be causing this issue and how can I get it resolved?

Thanks,

Daven Patel

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault 5.1.1 Public Key Issues

Post by Beth » Mon Jan 31, 2011 4:53 pm

Usually that error relates to the permissions on %ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA\MachineKeys. First, try opening up the security on that folder. Set the Everyone account to full control and then see if the client works. If the client works, then we can talk about adjusting the security on that folder to only what is needed. If the client doesn't work, then remove the Everyone group from that folder again and let me know your results.
Beth Kieler
SourceGear Technical Support

davenptl
Posts: 9
Joined: Mon Jan 31, 2011 2:23 pm

Re: Vault 5.1.1 Public Key Issues

Post by davenptl » Tue Feb 01, 2011 8:49 am

Beth,

Thanks for the help. Giving Everyone full control on the folder allowed me to successfully connect to the folder.

How do I work the permissions so that only the necessary permissions are granted in order to access the folder?

Thanks,

Daven

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault 5.1.1 Public Key Issues

Post by Beth » Tue Feb 01, 2011 2:36 pm

Do you recall what options you chose when you installed Vault? What I'm particularly interested is what IIS Process Model you chose. It would have been Machine, System, or Custom. That will give me an idea as to which account needs access set on the MachineKeys folder.
Beth Kieler
SourceGear Technical Support

davenptl
Posts: 9
Joined: Mon Jan 31, 2011 2:23 pm

Re: Vault 5.1.1 Public Key Issues

Post by davenptl » Wed Feb 02, 2011 6:25 am

From what I recall, the IIS Process User I chose was Machine which is mapped to the NT AUTHROITY\NETWORK SERVICE.

When I checked the security on the MachineKeys folder, that account has full control permissions on the folder, which is why I thought I shouldn't be running into any issues when trying to connect from the client software.

Thanks,

Daven

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault 5.1.1 Public Key Issues

Post by Beth » Wed Feb 02, 2011 10:15 am

Is the IUSR account listed there as well and the VaultAppPool? If not, try adding those two.
Beth Kieler
SourceGear Technical Support

davenptl
Posts: 9
Joined: Mon Jan 31, 2011 2:23 pm

Re: Vault 5.1.1 Public Key Issues

Post by davenptl » Wed Feb 02, 2011 2:29 pm

The IUSR and VaultAppPool accounts are both listed as having full control over the folder.

Daven

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault 5.1.1 Public Key Issues

Post by Beth » Tue Feb 08, 2011 4:25 pm

Go to your IIS Manager and find the Vault AppPool. One of the columns where the VaultAppPool is listed should show what Identity Vault is set to run under. What do you see?

What managed pipeline mode is the VaultAppPool set to?
Beth Kieler
SourceGear Technical Support

Post Reply