Step 1: Trust SharePoint's SSL Certificate
To configure Confluence to trust the certificate on your SharePoint server, you must add the certificate's public key to the Java runtime's Certificate Authority keystore as described below. Step 1.1: Create a |
The certificate's public key must be imported into the Java keystore as a certificate file in |
A simple way to create the required file is to import and export the certificate in and out of the Windows certificate store. This works because the export operation allows you to choose the export format.
The first step is to import the certificate into Windows:
.pfx
certificate file. (You may need to set the 'Files of type' filter to 'Personal Information Exchange (.pfx, *.p12)*'.At this point, your certificate should appear in the 'Personal' folder of the 'Certificates' snap-in.
Screenshot: Personal certificates
Now you can export the certificate in the desired .cer
format:
.cer
File onto the Confluence ServerWe have provided a batch script (see below) for Windows environments. If you are running Confluence on UNIX, please perform the import manually. The batch script uses the Java runtime's keytool command to import the certificate into the required location on the Confluence server. The script will add the certificate to the root Java Secure Sockets Extensions keystore, which is located in your Java Runtime Enviroment's (JRE's) lib\security
directory with the name jssecacerts
. This is the required location in order for the certificate to be trusted by Confluence.
This script assumes the following about your environment:
|
Copy and execute this batch script (Windows) to add the certificate to the keystore:
@echo off set keytool="%JAVA_HOME%\bin\keytool.exe" set keystore="%JAVA_HOME%\jre\lib\security\jssecacerts" set certificatefile=C:\sharepoint.cer %keytool% -import -alias sharepoint -keystore %keystore% -storepass changeit -file %certificatefile% |
The final step is to configure your Confluence server to communicate via the new URL you have set up.
The content of this page is hidden from view. To see it, edit the page or view the wiki markup. |
See Access SharePoint using Basic Authentication and SSL (via Alternative Access URL) with SP 2007 and Access SharePoint using Basic Authentication and SSL (via Alternative Access URL) with SP 2010.