mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
Merge pull request #363 from wiggisser/master
docs: add pfx support for https
This commit is contained in:
commit
46e9b7f4b9
14
wiki/ssl.md
14
wiki/ssl.md
@ -18,8 +18,8 @@ Once you update the listen and try to run verdaccio again will ask for certifica
|
||||
$ openssl req -new -sha256 -key ~/.config/verdaccio/verdaccio-key.pem -out ~/.config/verdaccio/verdaccio-csr.pem
|
||||
$ openssl x509 -req -in ~/.config/verdaccio/verdaccio-csr.pem -signkey ~/.config/verdaccio/verdaccio-key.pem -out ~/.config/verdaccio/verdaccio-cert.pem
|
||||
````
|
||||
|
||||
* Edit your config file `~/.config/verdaccio/config.yalm` an add the following section (more info on the `key`, `cert` and `ca` arguments on the [Node documentation](https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options))
|
||||
|
||||
* Edit your config file `~/.config/verdaccio/config.yalm` and add the following section
|
||||
|
||||
````
|
||||
https:
|
||||
@ -28,6 +28,16 @@ https:
|
||||
ca: ~/.config/verdaccio/server.ca
|
||||
````
|
||||
|
||||
Alternatively, if you have a certificate as `server.pfx` format, you can add the following configuration section. The passphrase is optional and only needed, if your certificate is encrypted.
|
||||
|
||||
````
|
||||
https:
|
||||
pfx: ~/.config/verdaccio/server.pfx
|
||||
passphrase: 'secret'
|
||||
````
|
||||
|
||||
More info on the `key`, `cert`, `ca`, `pfx` and `passphrase` arguments on the [Node documentation](https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options)
|
||||
|
||||
* Run `verdaccio` in your command line.
|
||||
|
||||
* Open the browser and load `https://your.domain.com:port/`
|
||||
|
Loading…
Reference in New Issue
Block a user