You are here

Configuring SharePoint Protocol with SSL

You can configure the Alfresco vti module to allow SharePoint Protocol support over SSL.

If you want to configure the SharePoint Protocol with a non-SSL connection, see Setting up SharePoint Protocol Support to work with Office 2010. For general information on SSL, see Microsoft support.

Ensure that you have a private key and certificate for the domain that runs the SharePoint Protocol. Do not confuse this key pair with the public/private key pair that is stored in the ssl.keystore and ssl.truststore for Solr communication.

In your production environment, ensure that you use a certificate that is signed by a trusted Certificate Authority (CA), and that your private key and entire certificate chain are stored in a SunJCE keystore file (using the JCEKS format). Depending on how you obtain your certificate and your Certificate Authority, the key and the certificate chain affects the file format. You can use the Java keytool to convert your certificate chain files into JCEKS format and store them in the JCE keystore.

  1. Stop the Alfresco server.
  2. Create a new file or modify an existing file in <classpathRoot>/alfresco/extension/vti-custom-context.xml to include this content:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://'>                   
      <bean id="vtiServerConnector" class="">
        <property name="port">
        <property name="headerBufferSize">
        <property name="maxIdleTime">
        <property name="keystore">
        <property name="keyPassword">
        <property name="password">
        <property name="keystoreType">

  3. Save vti-custom-context.xml.
  4. Create a new file or modify an existing file in <classpathRoot>/alfresco/extension/ file to include the following attributes:


    Set vti.server.ssl.keystore and vti.server.ssl.password to point to the keystore that you created in preparation for this task.

    Ensure that is set to the fully qualified domain name of the server that the certificate is issued to (that is,

  5. Save
  6. Start your Alfresco server to apply the changes.
  7. Check that the server is running correctly by opening this URL:


    Ensure you use a web browser that alerts you to error messages, so that you can see whether the connection is failing.

  8. Test that the configuration is successful by selecting an Office document in Alfresco Share and using the Edit online action.

If you cannot connect to the server, check the server log file for errors relating to the vti module.

If the server responds, but the client is not able to establish an SSL connection (for example, with an ssl_error_no_cypher_overlap error in Firefox), it is likely that the key and certificates contained in your keystore cannot be used to establish the connection. Check the contents of your keystore using this Java keytool command:
keytool -list -v –keystore /path/to/your/keystore -storetype JCEKS -passkey changeme
Common errors include:
  • Not all intermediate certificates required for the trust chain are contained in the keystore
  • The private key has a key length or format that is not accepted by the client
You can use log4j to capture more information about the SSL handshake process by using these settings:
or you can add the following argument to the JVM running the applications erver:,handshake,data,trustmanager
See Debugging SSL/TLS connections for more information about debugging.