Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with generating SSL cert, SSL_ERROR_RX_RECORD_TOO_LONG #649

Open
drozumek opened this issue Jul 26, 2020 · 0 comments
Open

Problem with generating SSL cert, SSL_ERROR_RX_RECORD_TOO_LONG #649

drozumek opened this issue Jul 26, 2020 · 0 comments

Comments

@drozumek
Copy link

## Issue Overview
Today after wp-rig initialization, when I try npm run dev, the browserSync doesn't work. Firefox/Chrome throws an error "SSL_ERROR_RX_RECORD_TOO_LONG"
When I try npm run generateCert I also got an error which says that certificate cannot be generated.

I never had this issue before.

## Describe your environment
OS: Windows 10
PHP: 7.3.7
MariaDB: 10.1.37
WP: 5.4.2
WP-Rig: 2.0.1
Code Editor: PHP Storm

## Steps to Reproduce

  1. Unpacked wp-rig
  2. npm run rig-init
  3. npm run generateCert

## Expected Behavior
Generate SSL certificate correctly, run browsersync on localhost

## Current Behavior
This is the log from the terminal
C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master>npm run generateCert

wprig@2.0.1 generateCert C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master
gulp generateCert

[13:33:08] Requiring external module @babel/register
Browserslist: caniuse-lite is outdated. Please run next command npm update
[13:33:13] Using gulpfile C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\gulpfile.babel.js
[13:33:13] Starting 'generateCert'...
(node:4576) UnhandledPromiseRejectionWarning: Error: Could not find openssl on your system on this path: openssl
at C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules\pem\lib\openssl.js:237:23
at F (C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules\which\which.js:68:16)
at E (C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules\which\which.js:80:29)
at C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules\which\which.js:89:16
at C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules\isexe\index.js:42:5
at C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules\isexe\windows.js:36:5
at FSReqWrap.oncomplete (fs.js:153:21)
(node:4576) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4576) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[13:33:13] The following tasks did not complete: generateCert
[13:33:13] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wprig@2.0.1 generateCert: gulp generateCert
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wprig@2.0.1 generateCert script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\drozu\AppData\Roaming\npm-cache_logs\2020-07-26T11_33_13_981Z-debug.log

Complete Log from file
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\drozu\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'generateCert' ]
2 info using npm@6.14.4
3 info using node@v10.16.0
4 verbose run-script [ 'pregenerateCert', 'generateCert', 'postgenerateCert' ]
5 info lifecycle wprig@2.0.1pregenerateCert: wprig@2.0.1
6 info lifecycle wprig@2.0.1
generateCert: wprig@2.0.1
7 verbose lifecycle wprig@2.0.1generateCert: unsafe-perm in lifecycle true
8 verbose lifecycle wprig@2.0.1
generateCert: PATH: C:\Users\drozu\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules.bin;C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master\node_modules.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\php-7.3.7-Win32-VC15-x64;C:\ProgramData\ComposerSetup\bin;C:\Users\drozu\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\drozu\AppData\Roaming\npm;C:\Users\drozu\AppData\Roaming\Composer\vendor\bin
9 verbose lifecycle wprig@2.0.1generateCert: CWD: C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master
10 silly lifecycle wprig@2.0.1
generateCert: Args: [ '/d /s /c', 'gulp generateCert' ]
11 silly lifecycle wprig@2.0.1generateCert: Returned: code: 1 signal: null
12 info lifecycle wprig@2.0.1
generateCert: Failed to exec generateCert script
13 verbose stack Error: wprig@2.0.1 generateCert: gulp generateCert
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Users\drozu\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess. (C:\Users\drozu\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid wprig@2.0.1
15 verbose cwd C:\Strony Wordpress\testcert.dev.cc\wp-content\themes\wprig-master
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\drozu\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "generateCert"
18 verbose node v10.16.0
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error wprig@2.0.1 generateCert: gulp generateCert
22 error Exit status 1
23 error Failed at the wprig@2.0.1 generateCert script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant