Zum Hauptinhalt gehen

FirstSpirit Maven Artifacts for external use (Release 1.1)

Kommentare

1 Kommentar

  • Zendesk API User
    Author: alexitelligence - 11/9/2017 16:02

    Is it possible to use Https when in Http Connection mode? After hardening our server to only accept HTTPS connections, we can no longer use the com.espirit.ps.maven.ModuleAbstractMojo MoJo:

    [ERROR] Failed to execute goal com.espirit.ps.maven:fsmoduleinstaller-maven-plugin:2.1.1:install-module (install-module) on project webapp-fsm: Encountered error during module installation. Exception: java.io.IOException: Unexpected HTTP state: (400) Bad Request, Date=Thu, 09 Nov 2017 15:37:24 GMT / Server=Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips / Content-Length=362 / Connection=close / Content-Type=text/html; charset=iso-8859-1 - http://*******:443/servlet/ClientIO/0/o0/1
    [ERROR] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    [ERROR] <html><head>
    [ERROR] <title>400 Bad Request</title>
    [ERROR] </head><body>
    [ERROR] <h1>Bad Request</h1>
    [ERROR] <p>Your browser sent a request that this server could not understand.<br />
    [ERROR] Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
    [ERROR] Instead use the HTTPS scheme to access this URL, please.<br />
    [ERROR] </p>
    [ERROR] </body></html>
    [ERROR] -> [Help 1]

    The method

    protected Connection openConnection() {

        return ConnectionManager.getConnection(getServerName(), getServerPort().intValue(), getConnectionMode(),

          getServerUser(), getServerPwd());

      }

    should set

    ConnectionManager.setUseHttps(true);

    when the maven plugin is configured (needs new config parameter).

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.