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
Why is the 'in' operator throwing an error with a string literal instead of logging false?
How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?
What does it mean to describe someone as a butt steak?
When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?
Doing something right before you need it - expression for this?
Alternative to sending password over mail?
Why does Arabsat 6A need a Falcon Heavy to launch
Why is Collection not simply treated as Collection<?>
Anagram holiday
What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?
How can I fix/modify my tub/shower combo so the water comes out of the showerhead?
Should I tell management that I intend to leave due to bad software development practices?
Intersection of two sorted vectors in C++
Is there a hemisphere-neutral way of specifying a season?
Today is the Center
Where does SFDX store details about scratch orgs?
How much of data wrangling is a data scientist's job?
Does a druid starting with a bow start with no arrows?
How to take photos in burst mode, without vibration?
Arrow those variables!
Facing a paradox: Earnshaw's theorem in one dimension
How to show the equivalence between the regularized regression and their constraint formulas using KKT
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
What's the difference between 'rename' and 'mv'?
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
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom: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.
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 2 days ago
Audiophile
asked 2 days 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 2 days 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