sercure SCM with https/ SSL

46 views
Skip to first unread message

Jørgen Staun Hansen

unread,
Jan 26, 2015, 5:15:19 AM1/26/15
to scmma...@googlegroups.com
Trying to configure my server to run with https, but for some reason it fails. (I succesfully created a self_signed cert that worked)  We have a wildcard certificate for our domain that I want to use.

Here are the step I have done so far.

1.Created a new keystore

keytool -genkey -alias *.mydomain.net -keyalg RSA -keysize 2048 -keystore keystore.jks MyPassword

2. Created the CSR Request

keytool -certreq -keyalg RSA -alias *.MyDomain.Net -file certreq.txt -keystore keystore


3. send this certreq.txt to main certificate provider.

4. Recieved the file
----BEGIN CERTIFICATE -----
ERW(D/YS(EY(EYDF(/ER
-----END CERTIFICATE

5. Saved this file as certreq.crt on my webserver (ubuntu)

6. Trying to import the certreq.crt file

keytool -import -trustcacerts -alias *.MyDomain.Net -file certreq.crt -keystore keystore.jks

7. Modified the server-config.xml fil to the correct values.

8. Restarted the scm-server service

Trying to access the website https://myserver.domain:8181

But NOTHING happen - I only get a This Page can't be displayed

Has anyone with succes tried to import a crt file into a jks keystore??

Jørgen Staun Hansen

unread,
Jan 27, 2015, 4:03:10 AM1/27/15
to scmma...@googlegroups.com
Found a solution, we had to install the intermediate and pusblisher certificate into the keystore aswell.
Reply all
Reply to author
Forward
0 new messages