Difference between revisions of "FAQ:Self Service Redirect to HTTPS"

From support-works
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
}}
 
}}
  
If you prefer you could re-direct http to https for Self service. This could also be applied to the web client.
+
If you prefer you could re-direct http to https for Self service. This could also be applied to the web client.  
You will need to edit the file in ..\Hornbill\Core Services\Apache\conf\cs\core\501_vhosts.conf.
 
  
Initially you may be tempted to use the following:
+
1. The first thing to do is contact a company that issues certificates such as Verisign for example and purchase a certificate (and key) from them. Thereafter put the certificate and key in the \Hornbill\Core Services\Apache\conf\cs\ssl\ directory
 +
 
 +
2. You will then need to edit the file in ..\Hornbill\Core Services\Apache\conf\cs\core\501_vhosts.conf.
 +
 
 +
This is the default 501_vhosts file:
  
 
<pre>
 
<pre>
<VirtualHost _default_:80>
+
 
RewriteEngine On
+
<VirtualHost _default_:443>
RewriteRule (.*/webclient/) https://<servername>/sw/webclient
+
    SSLEngine on
RewriteRule (.*/selfservice/) https://<servername>/sw/selfservice
+
...
Include "conf/cs/apps/*.conf"
+
 
 +
    SSLCertificateFile "conf/cs/ssl/server.crt"
 +
    SSLCertificateKeyFile "conf/cs/ssl/server.key"
 +
  ...
 +
 
 
</VirtualHost>
 
</VirtualHost>
 
</pre>
 
</pre>
  
In actual fact the best option is to use this as it takes out the requirement for having fixed paths:
+
Change it to the following:
  
 
<pre>
 
<pre>
<VirtualHost _default_:80>
+
 
RewriteEngine On
+
<VirtualHost _default_:443>
RewriteCond %{HTTPS} off
+
  ...
RewriteRule (.*/webclient/) https://%{HTTP_HOST}:443%{REQUEST_URI}
+
 
RewriteRule (.*/selfservice/) https://%{HTTP_HOST}:443%{REQUEST_URI}
+
    SSLCertificateFile "conf/cs/ssl/NEWCERTIFICATE.crt"
Include "conf/cs/apps/*.conf"
+
    SSLCertificateKeyFile "conf/cs/ssl/NEWKEY.key"
 +
  ...
 +
 
 
</VirtualHost>
 
</VirtualHost>
 
</pre>
 
</pre>
 +
 +
 +
3. Restart the Apache service so that the above changes take effect.
 +
 +
4. Thereafter access the _ssp_config.json file in \Hhornbill\Supportworks server\html\_selfservice\ directory and edit the _ssp_config.json file
 +
 +
<pre>
 +
"serverAddress" : http://<supportworks server>/sw/selfservice/
 +
</pre>
 +
 +
TO
 +
 +
<pre>
 +
"serverAddress" : https://<supportworks server>/sw/selfservice/
 +
</pre>
 +
 +
That should enable you to use Https without having to view the security warning page.

Latest revision as of 10:04, 26 June 2018



Status: Published
Version: 1.0
Authors: Hornbill Support
Applies to: Supportworks ITSM 4.x

If you prefer you could re-direct http to https for Self service. This could also be applied to the web client.

1. The first thing to do is contact a company that issues certificates such as Verisign for example and purchase a certificate (and key) from them. Thereafter put the certificate and key in the \Hornbill\Core Services\Apache\conf\cs\ssl\ directory

2. You will then need to edit the file in ..\Hornbill\Core Services\Apache\conf\cs\core\501_vhosts.conf.

This is the default 501_vhosts file:


<VirtualHost _default_:443>
    SSLEngine on
	...

    SSLCertificateFile "conf/cs/ssl/server.crt"
    SSLCertificateKeyFile "conf/cs/ssl/server.key"
   ...

</VirtualHost>

Change it to the following:


<VirtualHost _default_:443>
   ...

    SSLCertificateFile "conf/cs/ssl/NEWCERTIFICATE.crt"
    SSLCertificateKeyFile "conf/cs/ssl/NEWKEY.key"
   ...

</VirtualHost>


3. Restart the Apache service so that the above changes take effect.

4. Thereafter access the _ssp_config.json file in \Hhornbill\Supportworks server\html\_selfservice\ directory and edit the _ssp_config.json file

"serverAddress" : http://<supportworks server>/sw/selfservice/

TO

"serverAddress" : https://<supportworks server>/sw/selfservice/

That should enable you to use Https without having to view the security warning page.