How to set custom certificate for Node in Magento PWA?PWA Setup in Magento 2.3.0How to change URL of PWA in Magento 2.3?How to deploy pwa-studio on server in production mode?Magento 2.3 pwa studio issueHow to Access Magento2.3 Instance with PWAMagento 2 PWA Venia - how to set 404 pageImage slider for pwa studioMagento PWA: Which to use venia or vue storefrontI am trying to install Magento 2.3 with PWA studioMagento PWA: issue in starting development server

Do Iron Man suits sport waste management systems?

Car headlights in a world without electricity

What is required to make GPS signals available indoors?

Implication of namely

Bullying boss launched a smear campaign and made me unemployable

Why do I get negative height?

In the UK, is it possible to get a referendum by a court decision?

files created then deleted at every second in tmp directory

What historical events would have to change in order to make 19th century "steampunk" technology possible?

How to coordinate airplane tickets?

What does the same-ish mean?

What is the most common color to indicate the input-field is disabled?

How exploitable/balanced is this homebrew spell: Spell Permanency?

What is a Samsaran Word™?

Ambiguity in the definition of entropy

What do you call someone who asks many questions?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Finitely generated matrix groups whose eigenvalues are all algebraic

How to travel to Japan while expressing milk?

How to prevent "they're falling in love" trope

Machine learning testing data

Are British MPs missing the point, with these 'Indicative Votes'?

Why was the shrink from 8″ made only to 5.25″ and not smaller (4″ or less)

How to stretch the corners of this image so that it looks like a perfect rectangle?



How to set custom certificate for Node in Magento PWA?


PWA Setup in Magento 2.3.0How to change URL of PWA in Magento 2.3?How to deploy pwa-studio on server in production mode?Magento 2.3 pwa studio issueHow to Access Magento2.3 Instance with PWAMagento 2 PWA Venia - how to set 404 pageImage slider for pwa studioMagento PWA: Which to use venia or vue storefrontI am trying to install Magento 2.3 with PWA studioMagento PWA: issue in starting development server













0















I use remote staging server to test my PWA application which is under development and based on Magento 2.3 Venia theme. I see the Node instance generates devcert certificate automatically on application run. But it is not trusted by browsers of course. I have my own Lets encrypt certificate for staging domain and want to force using it for my application.



How can I do it? I found only instructions of how to specify custom cert files for Express.js app, but Magento 2 PWA studio is quite complex and I don't know where should I specify it.










share|improve this question




























    0















    I use remote staging server to test my PWA application which is under development and based on Magento 2.3 Venia theme. I see the Node instance generates devcert certificate automatically on application run. But it is not trusted by browsers of course. I have my own Lets encrypt certificate for staging domain and want to force using it for my application.



    How can I do it? I found only instructions of how to specify custom cert files for Express.js app, but Magento 2 PWA studio is quite complex and I don't know where should I specify it.










    share|improve this question


























      0












      0








      0








      I use remote staging server to test my PWA application which is under development and based on Magento 2.3 Venia theme. I see the Node instance generates devcert certificate automatically on application run. But it is not trusted by browsers of course. I have my own Lets encrypt certificate for staging domain and want to force using it for my application.



      How can I do it? I found only instructions of how to specify custom cert files for Express.js app, but Magento 2 PWA studio is quite complex and I don't know where should I specify it.










      share|improve this question
















      I use remote staging server to test my PWA application which is under development and based on Magento 2.3 Venia theme. I see the Node instance generates devcert certificate automatically on application run. But it is not trusted by browsers of course. I have my own Lets encrypt certificate for staging domain and want to force using it for my application.



      How can I do it? I found only instructions of how to specify custom cert files for Express.js app, but Magento 2 PWA studio is quite complex and I don't know where should I specify it.







      magento2 magento2.3 pwa-studio






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 17 hours ago







      Audiophile

















      asked 17 hours ago









      AudiophileAudiophile

      1509




      1509




















          1 Answer
          1






          active

          oldest

          votes


















          0














          In packages/package-name/.env :



          MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY='path/to/file'

          MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT='path/to/file'


          In packages/package-name/webpack.config.js :



           devServerConfig.provideSecureHost = 
          subdomain: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SUBDOMAIN,
          exactDomain:
          validEnv.MAGENTO_BUILDPACK_SECURE_HOST_EXACT_DOMAIN,
          addUniqueHash: !!validEnv.MAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH,
          keyFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY,
          certFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT
          ;


          In packages/pwa-buildpack/src/WebpackTools/PWADevServer.js :



           devServerConfig.https =
          hostConf.certFile && hostConf.keyFile
          ?
          key: readFileSync(hostConf.keyFile, 'utf-8'),
          cert: readFileSync(hostConf.certFile, 'utf-8')

          : ssl;





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fmagento.stackexchange.com%2fquestions%2f268305%2fhow-to-set-custom-certificate-for-node-in-magento-pwa%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














            In packages/package-name/.env :



            MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY='path/to/file'

            MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT='path/to/file'


            In packages/package-name/webpack.config.js :



             devServerConfig.provideSecureHost = 
            subdomain: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SUBDOMAIN,
            exactDomain:
            validEnv.MAGENTO_BUILDPACK_SECURE_HOST_EXACT_DOMAIN,
            addUniqueHash: !!validEnv.MAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH,
            keyFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY,
            certFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT
            ;


            In packages/pwa-buildpack/src/WebpackTools/PWADevServer.js :



             devServerConfig.https =
            hostConf.certFile && hostConf.keyFile
            ?
            key: readFileSync(hostConf.keyFile, 'utf-8'),
            cert: readFileSync(hostConf.certFile, 'utf-8')

            : ssl;





            share|improve this answer



























              0














              In packages/package-name/.env :



              MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY='path/to/file'

              MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT='path/to/file'


              In packages/package-name/webpack.config.js :



               devServerConfig.provideSecureHost = 
              subdomain: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SUBDOMAIN,
              exactDomain:
              validEnv.MAGENTO_BUILDPACK_SECURE_HOST_EXACT_DOMAIN,
              addUniqueHash: !!validEnv.MAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH,
              keyFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY,
              certFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT
              ;


              In packages/pwa-buildpack/src/WebpackTools/PWADevServer.js :



               devServerConfig.https =
              hostConf.certFile && hostConf.keyFile
              ?
              key: readFileSync(hostConf.keyFile, 'utf-8'),
              cert: readFileSync(hostConf.certFile, 'utf-8')

              : ssl;





              share|improve this answer

























                0












                0








                0







                In packages/package-name/.env :



                MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY='path/to/file'

                MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT='path/to/file'


                In packages/package-name/webpack.config.js :



                 devServerConfig.provideSecureHost = 
                subdomain: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SUBDOMAIN,
                exactDomain:
                validEnv.MAGENTO_BUILDPACK_SECURE_HOST_EXACT_DOMAIN,
                addUniqueHash: !!validEnv.MAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH,
                keyFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY,
                certFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT
                ;


                In packages/pwa-buildpack/src/WebpackTools/PWADevServer.js :



                 devServerConfig.https =
                hostConf.certFile && hostConf.keyFile
                ?
                key: readFileSync(hostConf.keyFile, 'utf-8'),
                cert: readFileSync(hostConf.certFile, 'utf-8')

                : ssl;





                share|improve this answer













                In packages/package-name/.env :



                MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY='path/to/file'

                MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT='path/to/file'


                In packages/package-name/webpack.config.js :



                 devServerConfig.provideSecureHost = 
                subdomain: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SUBDOMAIN,
                exactDomain:
                validEnv.MAGENTO_BUILDPACK_SECURE_HOST_EXACT_DOMAIN,
                addUniqueHash: !!validEnv.MAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH,
                keyFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_KEY,
                certFile: validEnv.MAGENTO_BUILDPACK_SECURE_HOST_SSL_CERT
                ;


                In packages/pwa-buildpack/src/WebpackTools/PWADevServer.js :



                 devServerConfig.https =
                hostConf.certFile && hostConf.keyFile
                ?
                key: readFileSync(hostConf.keyFile, 'utf-8'),
                cert: readFileSync(hostConf.certFile, 'utf-8')

                : ssl;






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 12 hours ago









                AudiophileAudiophile

                1509




                1509



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • 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%2fmagento.stackexchange.com%2fquestions%2f268305%2fhow-to-set-custom-certificate-for-node-in-magento-pwa%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

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?