diff --git a/base/acme/src/main/java/org/dogtagpki/acme/server/ACMEApplication.java b/base/acme/src/main/java/org/dogtagpki/acme/server/ACMEApplication.java index 15c1a69eea2..28f895455f5 100644 --- a/base/acme/src/main/java/org/dogtagpki/acme/server/ACMEApplication.java +++ b/base/acme/src/main/java/org/dogtagpki/acme/server/ACMEApplication.java @@ -14,7 +14,7 @@ /** * @author Endi S. Dewata */ -@ApplicationPath("") +@ApplicationPath("/rest") public class ACMEApplication extends Application { public static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ACMEApplication.class); diff --git a/base/acme/webapps/acme/WEB-INF/web.xml b/base/acme/webapps/acme/WEB-INF/web.xml index d9fef0b958e..2b108970d04 100644 --- a/base/acme/webapps/acme/WEB-INF/web.xml +++ b/base/acme/webapps/acme/WEB-INF/web.xml @@ -8,103 +8,10 @@ SPDX-License-Identifier: GPL-2.0-or-later ACME Responder - - org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - - - - resteasy.role.based.security - true - - - - resteasy.resource.method-interceptors - org.jboss.resteasy.core.ResourceMethodSecurityInterceptor - - - - ACME - org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher - - javax.ws.rs.Application - org.dogtagpki.acme.server.ACMEApplication - - - - - ACME - /login - - - - ACME - /logout - - - - ACME - /enable - - - - ACME - /disable - - - - ACME - /directory - - - - ACME - /new-nonce - - - - ACME - /new-account - - - - ACME - /new-order - - - - ACME - /authz/* - - - - ACME - /chall/* - - - - ACME - /order/* - - - - ACME - /acct/* - - - - ACME - /cert/* - - - - ACME - /revoke-cert - - Allow somebody with credentials to log in - /login + /rest/login POST @@ -118,7 +25,7 @@ SPDX-License-Identifier: GPL-2.0-or-later Allow anybody to get login information - /login + /rest/login POST @@ -130,7 +37,7 @@ SPDX-License-Identifier: GPL-2.0-or-later Allow anybody to log out Logout Service - /logout + /rest/logout CONFIDENTIAL @@ -140,7 +47,7 @@ SPDX-License-Identifier: GPL-2.0-or-later Allow administrators to enable ACME services - /enable + /rest/enable Administrators @@ -154,7 +61,7 @@ SPDX-License-Identifier: GPL-2.0-or-later Allow administrators to disable ACME services - /disable + /rest/disable Administrators diff --git a/base/tomcat-9.0/conf/Catalina/localhost/rewrite.config b/base/tomcat-9.0/conf/Catalina/localhost/rewrite.config index 2e5657f343e..868e1d24133 100644 --- a/base/tomcat-9.0/conf/Catalina/localhost/rewrite.config +++ b/base/tomcat-9.0/conf/Catalina/localhost/rewrite.config @@ -1 +1,18 @@ +# ACME +RewriteRule ^/acme/login$ /acme/rest/login +RewriteRule ^/acme/logout$ /acme/rest/logout +RewriteRule ^/acme/enable$ /acme/rest/enable +RewriteRule ^/acme/disable$ /acme/rest/disable +RewriteRule ^/acme/directory$ /acme/rest/directory +RewriteRule ^/acme/new-nonce$ /acme/rest/new-nonce +RewriteRule ^/acme/new-account$ /acme/rest/new-account +RewriteRule ^/acme/new-order$ /acme/rest/new-order +RewriteRule ^/acme/authz/(.*)$ /acme/rest/authz/$1 +RewriteRule ^/acme/chall/(.*)$ /acme/rest/chall/$1 +RewriteRule ^/acme/order/(.*)$ /acme/rest/order/$1 +RewriteRule ^/acme/acct/(.*)$ /acme/rest/acct/$1 +RewriteRule ^/acme/cert/(.*)$ /acme/rest/cert/$1 +RewriteRule ^/acme/revoke-cert$ /acme/rest/revoke-cert + +# EST RewriteRule ^/.well-known/est/(.*)$ /est/$1