https devServer fails when key has password

Open
#2,156 6 comments 0 reactions 1 assignee View on GitHub

@rwaskiewicz is already working on this.

Since Mar 28, 2023.

Assessment

This issue has not been assessed yet.

Description

Bug: Validated

Stencil version:

@stencil/core@1.8.3 

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
Error thrown when private key has password. It is not intuitive as it only shows:

[32:00.8]  @stencil/core v1.8.3 🚍

[ ERROR ]bject]

but when placing console.log(msg) in startDevServerMain --> startServer --> serverProcess.on('message', (msg) => { we get:

{ error:
   { message: { opensslErrorStack: [Array] },
     opensslErrorStack:
      'error:0907B00D:PEM routines:PEM_read_bio_PrivateKey:ASN1 lib,error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error,error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error' } }

Expected behavior:
should show error or have a place in stencil.config.ts to get key password

Dominant language
TypeScript
Stars
13.1k
Forks
855
Avg merge
4h 7m
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stenciljs/core

All issues in stenciljs/core

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.