Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8789

[fiware-stackoverflow] How to make Orion Context Broker works with HTTPS notification?

    Details

      Description

      Created question in FIWARE Q/A platform on 04-04-2017 at 18:04
      Please, ANSWER this question AT https://stackoverflow.com/questions/43212442/how-to-make-orion-context-broker-works-with-https-notification

      Question:
      How to make Orion Context Broker works with HTTPS notification?

      Description:
      I want to enable https for notifications. The Orion Context Broker version 1.7.0 is installed in Ubuntu 16.04. To start, the following command is being used:

      sudo /etc/init.d/contextBroker start -logAppend -https -key /path/to/orion.key -cert /path/to/orion.crt

      The answer is:

      [ ok ] Starting contextBroker (via systemctl): contextBroker.service.

      The status is:

      sudo systemctl status contextBroker.service
      contextBroker.service - LSB: Example initscript
      Loaded: loaded (/etc/init.d/contextBroker; bad; vendor preset: enabled)
      Active: active (exited) since Tue 2017-04-04 12:56:13 BRT; 14s ago
      Docs: man:systemd-sysv-generator(8)
      Process: 8312 ExecStart=/etc/init.d/contextBroker start (code=exited, status=0/SUCCESS)
      Apr 04 12:56:13 fiware-ubuntu systemd[1]: Starting LSB: Example initscript...
      Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: contextBroker
      Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: /path/bin/contextBroker
      Apr 04 12:56:13 fiware-ubuntu systemd[1]: Started LSB: Example initscript.

      Another approach is running Orion as:

      sudo /path/bin/contextBroker -logLevel DEBUG -localIp x.y.z.t -https -key /path/to/orion.key -cert /path/to/orion.crt

      The log follows:

      time=2017-04-04T18:37:58.881Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1705]:main | msg=Orion Context Broker is running
      time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[205]:mongoConnect | msg=Successful connection to database
      time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[681]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
      time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[724]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
      time=2017-04-04T18:37:58.888Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[626]:runCollectionCommand | msg=Database Operation Successful (command:

      { buildinfo: 1 }

      )
      ...
      time=2017-04-04T18:37:58.897Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=rest.cpp[1720]:restStart | msg=Fatal Error (error starting REST interface)

      It is not working...

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 58m 1 Backlog Manager 22/May/17 6:04 PM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 22/May/17 9:04 PM
        Answered Answered Closed Closed
        36d 11h 59m 1 Fernando Lopez 28/Jun/17 9:03 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 04-04-2017 at 18:04
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/43212442/how-to-make-orion-context-broker-works-with-https-notification


        +Question:+
        How to make Orion Context Broker works with HTTPS notification?

        +Description:+
        I want to enable https for notifications. The Orion Context Broker version 1.7.0 is installed in Ubuntu 16.04. To start, the following command is being used:

        sudo /etc/init.d/contextBroker start -logAppend -https -key /path/to/orion.key -cert /path/to/orion.crt


        The answer is:

        [ ok ] Starting contextBroker (via systemctl): contextBroker.service.


        The status is:

        sudo systemctl status contextBroker.service
        contextBroker.service - LSB: Example initscript
        Loaded: loaded (/etc/init.d/contextBroker; bad; vendor preset: enabled)
        Active: active (exited) since Tue 2017-04-04 12:56:13 BRT; 14s ago
        Docs: man:systemd-sysv-generator(8)
        Process: 8312 ExecStart=/etc/init.d/contextBroker start (code=exited, status=0/SUCCESS)
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Starting LSB: Example initscript...
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: contextBroker
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: /path/bin/contextBroker
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Started LSB: Example initscript.


        Another approach is running Orion as:

        sudo /path/bin/contextBroker -logLevel DEBUG -localIp x.y.z.t -https -key /path/to/orion.key -cert /path/to/orion.crt


        The log follows:

        time=2017-04-04T18:37:58.881Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1705]:main | msg=Orion Context Broker is running
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[205]:mongoConnect | msg=Successful connection to database
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[681]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[724]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=2017-04-04T18:37:58.888Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[626]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        ...
        time=2017-04-04T18:37:58.897Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=rest.cpp[1720]:restStart | msg=Fatal Error (error starting REST interface)


        It is not working...
        Created question in FIWARE Q/A platform on 04-04-2017 at 18:04
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/43212442/how-to-make-orion-context-broker-works-with-https-notification


        +Question:+
        How to make Orion Context Broker works with HTTPS notification?

        +Description:+
        I want to enable https for notifications. The Orion Context Broker version 1.7.0 is installed in Ubuntu 16.04. To start, the following command is being used:

        sudo /etc/init.d/contextBroker start -logAppend -https -key /path/to/orion.key -cert /path/to/orion.crt


        The answer is:

        [ ok ] Starting contextBroker (via systemctl): contextBroker.service.


        The status is:

        sudo systemctl status contextBroker.service
        contextBroker.service - LSB: Example initscript
        Loaded: loaded (/etc/init.d/contextBroker; bad; vendor preset: enabled)
        Active: active (exited) since Tue 2017-04-04 12:56:13 BRT; 14s ago
        Docs: man:systemd-sysv-generator(8)
        Process: 8312 ExecStart=/etc/init.d/contextBroker start (code=exited, status=0/SUCCESS)
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Starting LSB: Example initscript...
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: contextBroker
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: /path/bin/contextBroker
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Started LSB: Example initscript.


        Another approach is running Orion as:

        sudo /path/bin/contextBroker -logLevel DEBUG -localIp x.y.z.t -https -key /path/to/orion.key -cert /path/to/orion.crt


        The log follows:

        time=2017-04-04T18:37:58.881Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1705]:main | msg=Orion Context Broker is running
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[205]:mongoConnect | msg=Successful connection to database
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[681]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[724]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=2017-04-04T18:37:58.888Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[626]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        ...
        time=2017-04-04T18:37:58.897Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=rest.cpp[1720]:restStart | msg=Fatal Error (error starting REST interface)


        It is not working...
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:07|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:07|CREATED monitor | # answers= 1, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: