From d837199882974a40e8297839c32be2e253e31486 Mon Sep 17 00:00:00 2001 From: Vishal Date: Mon, 18 Nov 2024 15:49:56 +0530 Subject: [PATCH] Fixed issue with the Prod build in HTTPS mode --- keys/sdk-r.crt | 32 +++++++++++++++++++++++++++++++ keys/sdk-r.key | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 10 ++++++---- 3 files changed, 89 insertions(+), 4 deletions(-) create mode 100644 keys/sdk-r.crt create mode 100644 keys/sdk-r.key diff --git a/keys/sdk-r.crt b/keys/sdk-r.crt new file mode 100644 index 00000000..cd4386af --- /dev/null +++ b/keys/sdk-r.crt @@ -0,0 +1,32 @@ +-----BEGIN CERTIFICATE----- +MIIFezCCA2OgAwIBAgIJAKvPeOFKh/IbMA0GCSqGSIb3DQEBCwUAMHAxCzAJBgNV +BAYTAlVTMRYwFAYDVQQIDA1NYXNzYWNodXNldHRzMRAwDgYDVQQHDAdXYWx0aGFt +MRQwEgYDVQQKDAtQZWdhc3lzdGVtczENMAsGA1UECwwERFhJTDESMBAGA1UEAwwJ +bG9jYWxob3N0MB4XDTIzMDQyMTE4NTMxMVoXDTMzMDQxODE4NTMxMVowcDELMAkG +A1UEBhMCVVMxFjAUBgNVBAgMDU1hc3NhY2h1c2V0dHMxEDAOBgNVBAcMB1dhbHRo +YW0xFDASBgNVBAoMC1BlZ2FzeXN0ZW1zMQ0wCwYDVQQLDAREWElMMRIwEAYDVQQD +DAlsb2NhbGhvc3QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKbZth +6JcD8kP81Nib1z8kzCAAxQHFOArWmEpJA5jXgLoSmxCFDrcSNx9oEGvQc81dFlfD +S9kjMZAFkrLi/ECG2gVfdaE8DXX7Qt45zG8fqXYqi60+Iqe0n3Lc4tujgXaJ1J2c +AWRNImFFyvkl7OxZQE2hHrkz/6DMSKkah9na+Q3lpSEVTjJ2SKrJ+7mkLsGkRLcK +52dA5J5Lz+8sBCP3m7xz9f01zgvryTo8cM5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ecE+u1VR9EEOYaYNH4yS9Ce4XqXGZ76m1iEtD9dkw +8gr35XcCvdqpBfyR5aPeJ7upQOhCAD9oPCd1tI9yWXkR33rWNXp99EAHqneh1g3Q +TLbK+ysRRoMakF3lLhaZ +-----END CERTIFICATE----- diff --git a/keys/sdk-r.key b/keys/sdk-r.key new file mode 100644 index 00000000..d14687b8 --- /dev/null +++ b/keys/sdk-r.key @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJJwIBAAKCAgEAym2bYeiXA/JD/NTYm9c/JMwgAMUBxTgK1phKSQOY14C6EpsQ +hQ63EjcfaBBr0HPNXRZXw0vZIzGQBZKy4vxAhtoFX3WhPA11+0LeOcxvH6l2Kout +PiKntJ9y3OLbo4F2idSdnAFkTSJhRcr5JezsWUBNoR65M/+gzEipGofZ2vkN5aUh +FU4ydkiqyfu5pC7BpES3CudnQOSeS8/vLAQj95u8c/X9Nc4L68k6PHDOSTxWnycM +mdtAXGvg1XN2rXWMjIHmK9VUBbrH0S0xUmGnfOku26MFsYvbV1yvXg2MbVJZz9px +OnKOi0vSSSEhmoAkNao3jF74ndTcLTnLc6xn2OqAJhnClXnvJ0mDC+oIibA9xJSf +UfTFDF5868Xd4U8i493KTreUTyUgX2rvqxbD0TzYNOmAZEyuCMTUdOWycC4Yu2QN +vQF9NiavGaM4IpYVQive1Z7Ex3uz6ska5oqZt24MS5h/NnrjYmXukeYT8aBWGjT/ +Dwi7BraJC9+Udp7FQV14wbimM7DTLpZBd9VP1Yi9g/MFYpCgnKB2q4neHOAX9BoW ++85V1JPsX6qAXT38F5rPwYE0DLqUHu+QcLk+jGqMHd416xhEeChSf2zTojLAz88h +bYgpPkt9NeMKHvHmIlJv1uXcBbBTgD6EgNSvnWY1YExvs4UIL5/E8oCzyiECAwEA +AQKCAgAbAH/nkYUDa7+R7Dpwn0e2+tuR/rV7vzwC4BGYp7gtlug7LyAG/61/6oZv +9TDMf4X3UtGmJWnzfdr+Q1FFYeyhkFeD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YczewXnaRKQhUZua3O3AfEskgcjQBimY8HPBu0 +lz6gYuMKVoj012MO1L2L8QKZkTmaOi2u7yU/eG4k1zUhTutLoMvPuxZnneG0PdMD +6Cp8D9zt7CEWoC4QQSCK5j5nS+YQSz+DQqv75JAF62WFBonEyGCZESvIKFsh7ouv +++g2Lr1Bh6g3JGeG3J9aRMC+yOpGb6Y2lqP3Dd16VAw2/6ES6u7jnrSUxA== +-----END RSA PRIVATE KEY----- diff --git a/package.json b/package.json index aeec1403..5877cf28 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "fix": "run-s -cl fix:*", "fix:es": "eslint --color --fix --cache --cache-location node_modules/.cache/eslint/ \"packages/react-sdk-components/src/**\"", "fix:format": "prettier --log-level warn -w .", - "build-dev-only": "webpack --mode=development", - "build-prod-only": "webpack --mode=production", + "build-dev-only": "webpack --mode=development && npm run _internal-copy-index", + "build-prod-only": "webpack --mode=production && npm run _internal-copy-index", "build:dev": "run-p -l lint build-dev-only", "build:dev:ci": "npm run ci && npm run build:dev", "build:prod": "run-p -l lint build-prod-only", @@ -38,12 +38,14 @@ "start-dev": "webpack serve --mode='development'", "start-dev-https": "webpack serve --server-type https --mode='development'", "start-prod": "http-server ./dist --port 3502 --ext html -c-1 --gzip --brotli --cors --proxy http://localhost:3502?", - "start-prod-https": "http-server ./dist --port 3502 --ext html -c-1 --gzip --brotli --cors --ssl --cert private.pem --key private.key --proxy https://localhost:3502?", + "start-prod-https": "http-server ./dist --port 3502 --ext html -c-1 --gzip --brotli --cors --ssl --cert ./keys/sdk-r.crt --key ./keys/sdk-r.key --proxy https://localhost:3502?", "test": "node scripts/playwright-message.js && playwright test --project=chromium MediaCo/portal MediaCo/embedded", "test:headed": "playwright test --headed --project=chromium MediaCo/portal MediaCo/embedded", "test-report": "playwright show-report tests/playwright-report", "test-jest": "jest --watchAll", - "test-jest-coverage": "jest --watchAll --coverage" + "test-jest-coverage": "jest --watchAll --coverage", + "_comment_internal_SDK_scripts": "The following commands are for internal use and are intended to be called only from public scripts above", + "_internal-copy-index": "shx cp dist/index.html dist/simpleportal.html && shx cp dist/index.html dist/portal.html && shx cp dist/index.html dist/fullportal.html && shx cp dist/index.html dist/embedded.html" }, "author": "Pegasystems", "license": "SEE LICENSE IN LICENSE",