@@ -104,8 +104,52 @@ In order to force CRL reloading for the configured CAs, use the following:
104
104
105
105
$ PREFIX/etc/init.d/ocspd reload-crl
106
106
107
+ 5. Reverse Proxy Installation
108
+ =============================
109
+
110
+ It is possible to install the server behind a full-fledged HTTP server like
111
+ apache. A typical configuration for that would be the OCSP server listening
112
+ on the internal interface (e.g., 127.0.0.1 at port 2560) and the apache web
113
+ server listening on the generic port 80 on the external interface and act
114
+ as a reverse proxy to the OCSP server's interface.
115
+
116
+ To do that, here's an example configuration of the Apache Web Server:
117
+
118
+ <VirtualHost _default_:80>
119
+
120
+ Servername ocsp.example.com
121
+ DocumentRoot /dev/null
122
+
123
+ CustomLog /var/log/httpd/testocsp.kyrio.com-access.log combined
124
+ ErrorLog /var/log/httpd/testocsp.kyrio.com-error.log
125
+
126
+ # Just use the ProxyPass option from Apache to redirect the requests
127
+ # to the OpenCA's OCSP server
128
+ ProxyPass / http://127.0.0.1:2560
129
+
130
+ # Using the RewriteEngine configuration instead of the
131
+ # ProxyPass is another possibility, here's an example
132
+ #
133
+ # RewriteEngine on
134
+ # RewriteCond %{CONTENT_TYPE} !^application/ocsp-request$
135
+ # RewriteRule ^/(.*) http://localhost:2560/ [P]
136
+
137
+ </VirtualHost>
138
+
139
+ More information can be found at http://wiki.cacert.org/OcspResponder. However,
140
+ because of SELinux configuration, you might get an error from Apache when trying
141
+ to connect to the localhost at port 2560. In order to fix that, you need to
142
+ give Apache the possibility to open the connection. This is done by using the
143
+ following command:
144
+
145
+ [root@ocsp]# setsebool -P httpd_can_network_connect 1
146
+
147
+ more on this issue (SELinux) can be found here:
148
+
149
+ https://wiki.apache.org/httpd/13PermissionDenied
150
+
107
151
108
- 5 . Known Bugs
152
+ 6 . Known Bugs
109
153
=============
110
154
111
155
Since we re-engineered the server, no extensive testing has been perfomed.
0 commit comments