-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enabling npm artifacts repo process update (rhdevdocs-5035) (#2640)
Co-authored-by: Nick Boldt <nboldt@redhat.com>
- Loading branch information
1 parent
a534a2b
commit a545c82
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../end-user-guide/partials/proc_disabling-self-signed-certificate-validation.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[id="disabling-self-signed-certificate-validation"] | ||
= Disabling self-signed certificate validation | ||
|
||
Run the command below to disable SSL/TLS, bypassing the validation of your self-signed certificates. Note that this is a potential security risk. For a better solution, configure a self-signed certificate you trust with `NODE_EXTRA_CA_CERTS`. | ||
|
||
.Procedure | ||
|
||
* Run the following command in the terminal: | ||
+ | ||
[source, yaml] | ||
---- | ||
npm config set strict-ssl false | ||
---- |
15 changes: 15 additions & 0 deletions
15
.../end-user-guide/partials/proc_restoring-node-extra-ca-certs-variable-value.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[id="restoring-node-extra-ca-certs-variable-value"] | ||
= Configuring NODE_EXTRA_CA_CERTS to use a certificate | ||
|
||
Use the command below to set NODE_EXTRA_CA_CERTS to point to where you have your SSL/TLS certificate. | ||
|
||
.Procedure | ||
|
||
* Run the following command in the terminal: | ||
+ | ||
[source, bash] | ||
---- | ||
`export NODE_EXTRA_CA_CERTS=/public-certs/nexus.cer` <1> | ||
`npm install` | ||
---- | ||
<1> `/public-certs/nexus.cer` is the path to self-signed SSL/TLS certificate of Nexus artifactory. |