Not accept key file video streaming












0















I want to stream video securely and I am using ubuntu



console1



/home/ajithmsm/ffmpeg   -stream_loop -1 -i out.mp4 -vcodec copy -f mpegts tls://127.0.0.1:2222?listen'&'cert=domain.crt'&'key=domain.key


console2



ffplay tls://127.0.0.1:2222


I use this command to create crt and key



openssl req -newkey rsa:2048 -nodes -keyout domain.key -x509 -days 365 - out domain.crt

sudo cp test.crt /usr/local/share/ca-certificates/

sudo update-ca-certificates


It's streaming perfectly my problem was I am not send any key or crt file to another system but the video was streaming.
I don't know the video was encrypted,
whether there is encrypted video then how the video will play with out key



Any one knows how to send the commands and tell what's the problem with these commands and how do I stream video ffmpeg using tls










share|improve this question





























    0















    I want to stream video securely and I am using ubuntu



    console1



    /home/ajithmsm/ffmpeg   -stream_loop -1 -i out.mp4 -vcodec copy -f mpegts tls://127.0.0.1:2222?listen'&'cert=domain.crt'&'key=domain.key


    console2



    ffplay tls://127.0.0.1:2222


    I use this command to create crt and key



    openssl req -newkey rsa:2048 -nodes -keyout domain.key -x509 -days 365 - out domain.crt

    sudo cp test.crt /usr/local/share/ca-certificates/

    sudo update-ca-certificates


    It's streaming perfectly my problem was I am not send any key or crt file to another system but the video was streaming.
    I don't know the video was encrypted,
    whether there is encrypted video then how the video will play with out key



    Any one knows how to send the commands and tell what's the problem with these commands and how do I stream video ffmpeg using tls










    share|improve this question



























      0












      0








      0








      I want to stream video securely and I am using ubuntu



      console1



      /home/ajithmsm/ffmpeg   -stream_loop -1 -i out.mp4 -vcodec copy -f mpegts tls://127.0.0.1:2222?listen'&'cert=domain.crt'&'key=domain.key


      console2



      ffplay tls://127.0.0.1:2222


      I use this command to create crt and key



      openssl req -newkey rsa:2048 -nodes -keyout domain.key -x509 -days 365 - out domain.crt

      sudo cp test.crt /usr/local/share/ca-certificates/

      sudo update-ca-certificates


      It's streaming perfectly my problem was I am not send any key or crt file to another system but the video was streaming.
      I don't know the video was encrypted,
      whether there is encrypted video then how the video will play with out key



      Any one knows how to send the commands and tell what's the problem with these commands and how do I stream video ffmpeg using tls










      share|improve this question
















      I want to stream video securely and I am using ubuntu



      console1



      /home/ajithmsm/ffmpeg   -stream_loop -1 -i out.mp4 -vcodec copy -f mpegts tls://127.0.0.1:2222?listen'&'cert=domain.crt'&'key=domain.key


      console2



      ffplay tls://127.0.0.1:2222


      I use this command to create crt and key



      openssl req -newkey rsa:2048 -nodes -keyout domain.key -x509 -days 365 - out domain.crt

      sudo cp test.crt /usr/local/share/ca-certificates/

      sudo update-ca-certificates


      It's streaming perfectly my problem was I am not send any key or crt file to another system but the video was streaming.
      I don't know the video was encrypted,
      whether there is encrypted video then how the video will play with out key



      Any one knows how to send the commands and tell what's the problem with these commands and how do I stream video ffmpeg using tls







      ffmpeg openssl video-streaming tls






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 2 at 8:35









      Ahmed Ashour

      1,3201714




      1,3201714










      asked Jan 2 at 6:26









      msmmsm

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          If you read the documentation you see that you need to add ?tls_verify=1 to the ffplay client command in order for it to verify the certificate sent by the server:




          If enabled, try to verify the peer that we are communicating with.

          ...

          This is disabled by default since it requires a CA database to be provided by the caller in many cases.




          If you enable it, you should get errors as you say the certificate isn't installed on the client.






          share|improve this answer
























          • Note: I've not tested my answer :-)

            – garethTheRed
            Jan 2 at 16:20













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389681%2fnot-accept-key-file-video-streaming%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          If you read the documentation you see that you need to add ?tls_verify=1 to the ffplay client command in order for it to verify the certificate sent by the server:




          If enabled, try to verify the peer that we are communicating with.

          ...

          This is disabled by default since it requires a CA database to be provided by the caller in many cases.




          If you enable it, you should get errors as you say the certificate isn't installed on the client.






          share|improve this answer
























          • Note: I've not tested my answer :-)

            – garethTheRed
            Jan 2 at 16:20


















          0














          If you read the documentation you see that you need to add ?tls_verify=1 to the ffplay client command in order for it to verify the certificate sent by the server:




          If enabled, try to verify the peer that we are communicating with.

          ...

          This is disabled by default since it requires a CA database to be provided by the caller in many cases.




          If you enable it, you should get errors as you say the certificate isn't installed on the client.






          share|improve this answer
























          • Note: I've not tested my answer :-)

            – garethTheRed
            Jan 2 at 16:20
















          0












          0








          0







          If you read the documentation you see that you need to add ?tls_verify=1 to the ffplay client command in order for it to verify the certificate sent by the server:




          If enabled, try to verify the peer that we are communicating with.

          ...

          This is disabled by default since it requires a CA database to be provided by the caller in many cases.




          If you enable it, you should get errors as you say the certificate isn't installed on the client.






          share|improve this answer













          If you read the documentation you see that you need to add ?tls_verify=1 to the ffplay client command in order for it to verify the certificate sent by the server:




          If enabled, try to verify the peer that we are communicating with.

          ...

          This is disabled by default since it requires a CA database to be provided by the caller in many cases.




          If you enable it, you should get errors as you say the certificate isn't installed on the client.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 16:19









          garethTheRedgarethTheRed

          1,945911




          1,945911













          • Note: I've not tested my answer :-)

            – garethTheRed
            Jan 2 at 16:20





















          • Note: I've not tested my answer :-)

            – garethTheRed
            Jan 2 at 16:20



















          Note: I've not tested my answer :-)

          – garethTheRed
          Jan 2 at 16:20







          Note: I've not tested my answer :-)

          – garethTheRed
          Jan 2 at 16:20




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389681%2fnot-accept-key-file-video-streaming%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          Puebla de Zaragoza

          Musa