Finally!!!
I have some success with https and certificates.
Just for the record I will outline how I did it (maybe there some else that is as stupid as I)
Running Gitblit GO on a network (i.e. not on localhost)
1. Install Gitblit
2. Configure Gitblit according to the documentation
2. start authority.cmd
3. In the first dialog enter
The other fields let them keep their default value
4. Enter the store password used in server.storePassword when prompted. The one you changed during the configuration
This generates an SSL certificate for localhost.
5. Change localhost to your hostname.
Click the new ssl certificate button (red rosette in the toolbar in upper left of window)
Enter the hostname or ip address. The same hostname as you entered for Site name.
Make sure the checkbox serve https with this certificate is checked
In the keystore password prompt, enter the server.storePassword password
All of the above (except that the site name MUST be your hostname) is in the documentation!
Now you need to make your computer/computers trust this certificate.
Gitblit Certificate Authority is the issuer of your certificate and to trust your certificate you must also trust the issuer.
1. Make sure that you have access to the file: Data/Cert/ca.cer
This file contains the certificate for Gitblit Certificate Authority
The data directory is default under the gitblit directory.
2. Click Start, click Start Search, type mmc and then press ENTER.
3. On the File menu, click Add/Remove Snap-in.
4. Under Available snap-ins, click Certificates,and then click Add.
5. Under This snap-in will always manage certificates for, click Computer account, and then click Next.
6. Click Local computer, and click Finish.
7. Click OK.
8. In the console tree, double-click Certificates.
9. Right-click the Trusted Root Certification Authorities store.
10 Click Import to import the certificates and follow the steps in the Certificate Import Wizard.
Here you want to import ca.cer
Now you have trusted Gitblit Certificate Authority and now you can add the certificate for your Gitblit server.
1. Start IE as administrator
3. You will get: There is a problem with this website's security certificate. Click Continue to this website (not recommended).
4. Click on Certificate Error on the right of the url
5. Click on the Install Certificate... button
6. Select Place all certificate in the following store and click Browse...
7. Check Show physical stores
8. Highlight the Trusted Root Certification Authentications and select Local Computer
9. Click OK and click Next
10. Click Fishish
Now (hopefully) you will get a dialog saying: This certificate is intended for the following purpose(s):
All application policies
In this Step by step guide there is a dialog after you have installed your certificate that want to install the
issuers certificate. Since I never got this. I had to do what I have written above...
// Anders