How to Sign a .jar file with my Apple Developer ID










2















I have a java executable jar file that I need to be signed with my Apple Developer ID. I don’t intend to distribute it through the app store. I will be distributing the app directly to customers through my website. I’m not intending to bypass Gatekeeper. Signing the app with my developer ID is what will satisfy Gatekeeper when customers install the app and thus avoid a security prompt that I am an "Unidentified Developer".



Any help would be greatly appreciated










share|improve this question




























    2















    I have a java executable jar file that I need to be signed with my Apple Developer ID. I don’t intend to distribute it through the app store. I will be distributing the app directly to customers through my website. I’m not intending to bypass Gatekeeper. Signing the app with my developer ID is what will satisfy Gatekeeper when customers install the app and thus avoid a security prompt that I am an "Unidentified Developer".



    Any help would be greatly appreciated










    share|improve this question


























      2












      2








      2








      I have a java executable jar file that I need to be signed with my Apple Developer ID. I don’t intend to distribute it through the app store. I will be distributing the app directly to customers through my website. I’m not intending to bypass Gatekeeper. Signing the app with my developer ID is what will satisfy Gatekeeper when customers install the app and thus avoid a security prompt that I am an "Unidentified Developer".



      Any help would be greatly appreciated










      share|improve this question
















      I have a java executable jar file that I need to be signed with my Apple Developer ID. I don’t intend to distribute it through the app store. I will be distributing the app directly to customers through my website. I’m not intending to bypass Gatekeeper. Signing the app with my developer ID is what will satisfy Gatekeeper when customers install the app and thus avoid a security prompt that I am an "Unidentified Developer".



      Any help would be greatly appreciated







      java code-signing executable-jar osx-gatekeeper






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 8:42









      Pawan Tiwari

      270116




      270116










      asked Nov 15 '18 at 6:21









      Sachin BhatiaSachin Bhatia

      111




      111






















          2 Answers
          2






          active

          oldest

          votes


















          2














          From apple.stackexchange.com:




          Signed binary being warned as signed by unknown developer on
          OSx



          It appears the security settings of the computer in System
          Preferences → Security & Privacy
          are set to Allow apps downloaded
          from: App Store as shown in the error message.



          Regardless of how your application is signed, if it's not distributed
          through the App Store, Gatekeeper will show that message. To allow all
          other signed apps, the setting needs to be changed to App Store and
          identified developers




          See also:




          How to sign Java applet with Apple Developer ID



          Oh, there is no way to do it =( Java applets cannot participate in the
          Developer ID program. The Apple's answer is here
          https://stackoverflow.com/a/12210534/1068878.







          share|improve this answer
































            2














            Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.






            share|improve this answer























            • It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

              – paulsm4
              Nov 15 '18 at 6:38











            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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%2fstackoverflow.com%2fquestions%2f53313548%2fhow-to-sign-a-jar-file-with-my-apple-developer-id%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            From apple.stackexchange.com:




            Signed binary being warned as signed by unknown developer on
            OSx



            It appears the security settings of the computer in System
            Preferences → Security & Privacy
            are set to Allow apps downloaded
            from: App Store as shown in the error message.



            Regardless of how your application is signed, if it's not distributed
            through the App Store, Gatekeeper will show that message. To allow all
            other signed apps, the setting needs to be changed to App Store and
            identified developers




            See also:




            How to sign Java applet with Apple Developer ID



            Oh, there is no way to do it =( Java applets cannot participate in the
            Developer ID program. The Apple's answer is here
            https://stackoverflow.com/a/12210534/1068878.







            share|improve this answer





























              2














              From apple.stackexchange.com:




              Signed binary being warned as signed by unknown developer on
              OSx



              It appears the security settings of the computer in System
              Preferences → Security & Privacy
              are set to Allow apps downloaded
              from: App Store as shown in the error message.



              Regardless of how your application is signed, if it's not distributed
              through the App Store, Gatekeeper will show that message. To allow all
              other signed apps, the setting needs to be changed to App Store and
              identified developers




              See also:




              How to sign Java applet with Apple Developer ID



              Oh, there is no way to do it =( Java applets cannot participate in the
              Developer ID program. The Apple's answer is here
              https://stackoverflow.com/a/12210534/1068878.







              share|improve this answer



























                2












                2








                2







                From apple.stackexchange.com:




                Signed binary being warned as signed by unknown developer on
                OSx



                It appears the security settings of the computer in System
                Preferences → Security & Privacy
                are set to Allow apps downloaded
                from: App Store as shown in the error message.



                Regardless of how your application is signed, if it's not distributed
                through the App Store, Gatekeeper will show that message. To allow all
                other signed apps, the setting needs to be changed to App Store and
                identified developers




                See also:




                How to sign Java applet with Apple Developer ID



                Oh, there is no way to do it =( Java applets cannot participate in the
                Developer ID program. The Apple's answer is here
                https://stackoverflow.com/a/12210534/1068878.







                share|improve this answer















                From apple.stackexchange.com:




                Signed binary being warned as signed by unknown developer on
                OSx



                It appears the security settings of the computer in System
                Preferences → Security & Privacy
                are set to Allow apps downloaded
                from: App Store as shown in the error message.



                Regardless of how your application is signed, if it's not distributed
                through the App Store, Gatekeeper will show that message. To allow all
                other signed apps, the setting needs to be changed to App Store and
                identified developers




                See also:




                How to sign Java applet with Apple Developer ID



                Oh, there is no way to do it =( Java applets cannot participate in the
                Developer ID program. The Apple's answer is here
                https://stackoverflow.com/a/12210534/1068878.








                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 15 '18 at 6:33

























                answered Nov 15 '18 at 6:26









                paulsm4paulsm4

                79.7k9101128




                79.7k9101128























                    2














                    Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.






                    share|improve this answer























                    • It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

                      – paulsm4
                      Nov 15 '18 at 6:38
















                    2














                    Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.






                    share|improve this answer























                    • It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

                      – paulsm4
                      Nov 15 '18 at 6:38














                    2












                    2








                    2







                    Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.






                    share|improve this answer













                    Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 15 '18 at 6:33









                    Dark KnightDark Knight

                    6,35942749




                    6,35942749












                    • It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

                      – paulsm4
                      Nov 15 '18 at 6:38


















                    • It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

                      – paulsm4
                      Nov 15 '18 at 6:38

















                    It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

                    – paulsm4
                    Nov 15 '18 at 6:38






                    It's my understanding that the only thing you can do to keep Gatekeeper from complaining is to change system settings :( The Oracle link also has this nifty command that's worth trying: spctl --assess --verbose=4 --type execute ExampleApp.app

                    – paulsm4
                    Nov 15 '18 at 6:38


















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f53313548%2fhow-to-sign-a-jar-file-with-my-apple-developer-id%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







                    這個網誌中的熱門文章

                    How to read a connectionString WITH PROVIDER in .NET Core?

                    In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

                    Museum of Modern and Contemporary Art of Trento and Rovereto