Reverse Proxy
It is a best practice not to have the CASPUnbound’s Crypto Asset Security Platform (“CASP”) provides the advanced
technology and the architecture to secure crypto asset transactions. REST
Representational State Transfer (REST) - an architectural style that defines a set of constraints and properties based on HTTP. Web Services that conform to the REST architectural style, or RESTful web services, provide interoperability between computer systems on the Internet. API completely open to the internet. However, you may want to enable internet access to specific REST
Representational State Transfer (REST) - an architectural style that defines a set of constraints and properties based on HTTP. Web Services that conform to the REST architectural style, or RESTful web services, provide interoperability between computer systems on the Internet. API endpoints, such as the mobile devices that use your CASP
Unbound’s Crypto Asset Security Platform (“CASP”) provides the advanced
technology and the architecture to secure crypto asset transactions. app.
To accomplish this task, it is possible to implement a reverse proxy for all the endpoints that use the RESTRepresentational State Transfer (REST) - an architectural style that defines a set of constraints and properties based on HTTP. Web Services that conform to the REST architectural style, or RESTful web services, provide interoperability between computer systems on the Internet. API. The reverse proxy redirects API calls going from the CASP
Unbound’s Crypto Asset Security Platform (“CASP”) provides the advanced
technology and the architecture to secure crypto asset transactions. participant
A member of any of the quorum groups. REST
Representational State Transfer (REST) - an architectural style that defines a set of constraints and properties based on HTTP. Web Services that conform to the REST architectural style, or RESTful web services, provide interoperability between computer systems on the Internet. API endpoints to the server.
Use the following procedure to create the reverse proxy. This example shows which API’s should be open to make the system operational.
- Install Apache (or any other web server) on the device that you are using for the proxy.
- Create a file casp-apache.conf in the directory /etc/httpd/conf.d.
- The file should have the following contents.
- Restart httpd.
- In the CASP
Unbound’s Crypto Asset Security Platform (“CASP”) provides the advanced technology and the architecture to secure crypto asset transactions. app, use the URL of the proxy instead the server.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module modules/mod_headers.so
Header set X-Content-Type-Options nosniff
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'"
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass /casp/api/v1.0/ep http://<CASP Server>/casp/api/v1.0/ep
ProxyPassReverse /casp/api/v1.0/ep http://<CASP Server>/casp/api/v1.0/ep
</VirtualHost>
<VirtualHost *:443>
ProxyPreserveHost On
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
ProxyPass /casp/api/v1.0/ep http://<CASP Server>/casp/api/v1.0/ep
ProxyPassReverse /casp/api/v1.0/ep http://<CASP Server>/casp/api/v1.0/ep
</VirtualHost>
Note
The default certificate that is installed by httpd is a self-signed certificate. This should be replaced with your production certificate.
sudo service httpd restart
After entering the URL of the proxy in the CASPUnbound’s Crypto Asset Security Platform (“CASP”) provides the advanced
technology and the architecture to secure crypto asset transactions. app, if it connects, then the proxy is configured correctly.