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
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
add a comment |
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
add a comment |
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
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
magento2 magento2.3 pwa-studio
edited 17 hours ago
Audiophile
asked 17 hours ago
AudiophileAudiophile
1509
1509
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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;
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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;
add a comment |
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;
add a comment |
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;
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;
answered 12 hours ago
AudiophileAudiophile
1509
1509
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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