HTTPS is HTTPS over SSL or TLS or simply speaking - secure and encrypted option for HTTP protocol. You might want to set this up mainly for:
- secure webshop operation so that all the information such as passwords, credit card details etc. between the end user and server is enrypted
- REST API connection using OAuth protocol that is possible only over HTTPS as login tokens are sent in the HTTP requests and thus are sensitive
Encryption is provided using a pair of two keys - private and public keys. These keys can be:
- signed or approved by a Certification Authority such as Global Sign, Comodo, Verisign or others ensuring that the end user will be able to make sure that the server or website is actually who they say they are. This is usually a fairly expensive service, but also comparably convenient and secure
- issued and signed using letsencrypt.com free service
- self signed or issues by yourself which is good enough if you wish to create HTTPS connection only for known parties such as your server and a known third party e.g. REST API resource consumer
This how to will describe the last option of issuing self signed certificates as the actual setup of Standard ERP is the same for all three options.
Step-by-step guide
- There are many articles on the internet describing in detail how to issue a self signed certificate. For example you can follow this article from heroku.com
- As a result you will get private key e.g.
server.key
and certificate e.g.server.crt
. Move them to your Standard ERP server folder and place them in folderssl
- Open Technics>>Register>>Program Mode in your Standard ERP client
In the tab Web enter HTTPS port and open it in your firewall to the allowed IP addresses (or all the internet) and check the checkbox Use HTTPS.
Default port for HTTPS is 443
- Enter
ssl/server.crt
in the field Certificate - Enter
ssl/server.key
in the field Private Key - Additionally you can set other options e.g. disabling insecure versions of HTTPS SSL 2.0, SSL 3.0 and TLS 1.0
- Restart your server and you should see something like this in your hansa.log on the server:
Related articles