Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-4321

Unable to use cli.sh for remote administration over a secure port

    Details

      Description

      revision: b831967

      Discovered while going through OPENIDM-3978

      cli.sh supports remote administration

      For this bug, I've run the cli.sh command from a local macbook, to administer a system on a remote CentOS 6 system (on the Vancouver lab, IP 172.16.206.4)

      It works for insecure communications over port 8080, e.g.

      ./cli.sh update -u openidm-admin:openidm-admin --url http://172.16.206.4:8080/openidm/ openidm-patch.zip

      ./cli.sh configexport -u openidm-admin:openidm-admin --url http://172.16.206.4:8080/openidm/ ~/Documents/Patches/

      It does not work for secure communications over port 8443, e.g.

      ./cli.sh configexport -u openidm-admin:openidm-admin --url https://172.16.206.4:8443/openidm/ ~/Documents/Patches/

      ./cli.sh update -u openidm-admin:openidm-admin --url https://172.16.206.4:8443/openidm/ openidm-patch.zip

      Both secure commands lead to the following error:

      An error occurred during the communication with the remote HTTP server.

      javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:671)
      at sun.security.ssl.InputRecord.read(InputRecord.java:504)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
      at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.vincent jason vincent
                Reporter:
                Mike2 Mike Jang [X] (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: