Skip to content

Self-hosting: encypted npmToken #8655

Discussion options

You must be logged in to vote

It would have been super helpful if decrypt.ts did not swallow the "err" here but log it:

          } catch (err) {
            const error = new Error('config-validation');
            error.validationError = `Failed to decrypt field ${eKey}. Please re-encrypt and try again.`;
            throw error;
          }

then one would have seen that the problem is:

{
  "library": "PEM routines",
  "function": "get_header_and_data",
  "reason": "short header",
  "code": "ERR_OSSL_PEM_SHORT_HEADER"
}

this might bring you here openssl/openssl#8815 which tells you that the javascript `` template syntax in combination with the IDE - which adds spaces before each line - is breaking the private cert…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ronaldploeger
Comment options

@viceice

This comment has been hidden.

@viceice
Comment options

@ronaldploeger
Comment options

@viceice
Comment options

Answer selected by ronaldploeger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants