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

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                    Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림