SFS2X Docs / GettingStarted / ssl-manual-deploy
» Deploying an SSL certificate manually
Starting from version 2.14.0 SmartFoxServer 2X integrates Apache Tomcat as web server.
If you're looking to manually deploy an SSL certificate for a previous version of SmarFoxServer please refer to this document instead.
You can follow these steps to manually deploy your keystore to the embedded Tomcat
- Copy the keystore file to the SFS2X/lib/apache-tomcat/conf/ folder
- Open the server.xml file located under SFS2X/lib/apache-tomcat/conf/
-
Add the following fragment of XML, replacing the filename and password:
<Connector SSLEnabled="true" clientAuth="false" keystoreFile="lib/apache-tomcat/conf/keystore-file.jks" keystorePass="keystore-password" maxThreads="200" port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" secure="true" sslProtocol="TLS"/>
- Finally save and restart SmartFoxServer 2X.