Restrict Access to the API

You can restrict access to the certdog API from specific IP addresses. Note: You can also restrict Teams to specific IPs or ranges of IP addresses as described here.

You may wish to do this to limit access for configuration and the issuance of certificates from the local host for all users. Note that CRL and OCSP services will still be accessible from other IP addresses.

If another certdog acts as a Registration Authority for this certdog (see Using Certdog in RA Mode), include the RA certdog server’s IP address in the allowed addresses. This can be used to make this certdog reachable only from its RA certdogs

To implement this, create a text file called context.xml

Populate this file as follows:

<Context antiJARLocking="true" path="/">
    <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.0.0.1" />
</Context>

Specifying the IP addresses required in the allow="" section. Multiple IPs can be specified by separating with the | character. E.g. allow="192.168.54.10|192.168.54.11"

Save the file to:

..\certdog\tomcat\webapps\certdog#api\META-INF

E.g.

C:\certdog\tomcat\webapps\certdog#api\META-INF\context.xml