Class Http01ChallengeFileServer
- java.lang.Object
-
- jetbrains.buildServer.serverSide.https.Http01ChallengeFileServer
-
public class Http01ChallengeFileServer extends Object
A simple HTTP server used to serve HTTP-01 challenge files for Let's Encrypt. Quite same as SimpleHttpServerBase HTTP-01 challenge can only be done on port 80, so we use sockets to serve files without TC deployment on port 80. See https://letsencrypt.org/docs/challenge-types/ for details
-
-
Constructor Summary
Constructors Constructor Description Http01ChallengeFileServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPort(int newPort)
Set new port.void
startHttp01ChallengeServer(Collection<AcmeAuthorization> authorizations)
Opens socket, which serves given challenge files at .well-known/acme-challenge/%challengeFileName% pathvoid
stopHttp01ChallengeServer()
Stops challenge file serving
-
-
-
Method Detail
-
startHttp01ChallengeServer
public void startHttp01ChallengeServer(@NotNull Collection<AcmeAuthorization> authorizations) throws AcmeServiceException
Opens socket, which serves given challenge files at .well-known/acme-challenge/%challengeFileName% path- Parameters:
authorizations
- list of challenge files- Throws:
AcmeServiceException
- on socket opening failures
-
stopHttp01ChallengeServer
public void stopHttp01ChallengeServer()
Stops challenge file serving
-
setPort
public void setPort(int newPort)
Set new port. For testing purposes.- Parameters:
newPort
-
-
-