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

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form