0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/website/translated_docs/es-ES/ssl.md
verdacciobot 825f5a57ea New Crowdin translations (#768)
* New translations iis-server.md (Spanish)
docs(website): new translations

* New translations install.md (Spanish)
docs(website): new translations

* New translations en.json (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations auth.md (Spanish)
docs(website): new translations

* New translations iis-server.md (Spanish)
docs(website): new translations

* New translations auth.md (Spanish)
docs(website): new translations

* New translations auth.md (Spanish)
docs(website): new translations

* New translations ansible.md (Spanish)
docs(website): new translations

* New translations windows.md (Spanish)
docs(website): new translations

* New translations logger.md (Spanish)
docs(website): new translations

* New translations logger.md (Spanish)
docs(website): new translations

* New translations logger.md (Spanish)
docs(website): new translations

* New translations ci.md (Spanish)
docs(website): new translations

* New translations ci.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations windows.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations protect-your-dependencies.md (Spanish)
docs(website): new translations

* New translations uplinks.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations protect-your-dependencies.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations node-api.md (Spanish)
docs(website): new translations

* New translations protect-your-dependencies.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations install.md (Spanish)
docs(website): new translations

* New translations reverse-proxy.md (Spanish)
docs(website): new translations

* New translations reverse-proxy.md (Spanish)
docs(website): new translations

* New translations ssl.md (Spanish)
docs(website): new translations

* New translations ssl.md (Spanish)
docs(website): new translations

* New translations ssl.md (Spanish)
docs(website): new translations

* New translations ssl.md (Spanish)
docs(website): new translations

* New translations auth.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations iis-server.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations ci.md (Spanish)
docs(website): new translations

* New translations iis-server.md (Spanish)
docs(website): new translations

* New translations logger.md (Spanish)
docs(website): new translations

* New translations ci.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations logger.md (Spanish)
docs(website): new translations

* New translations iis-server.md (Spanish)
docs(website): new translations

* New translations iis-server.md (Spanish)
docs(website): new translations

* New translations windows.md (Spanish)
docs(website): new translations
2018-06-19 19:18:49 +02:00

2.2 KiB

id title
ssl Configurar los Certificados SSL

Siga estas instrucciones para configurar un certificado SSL que sirva al registro NPM bajo HTTPS.

Una vez haya actualizado la propiedad listen e intente correr verdaccio nuevamente pedirá los certificados.

  • Genere sus certificados

    $ openssl genrsa -out /Users/user/.config/verdaccio/verdaccio-key.pem 2048 $ openssl req -new -sha256 -key /Users/user/.config/verdaccio/verdaccio-key.pem -out /Users/user/.config/verdaccio/verdaccio-csr.pem $ openssl x509 -req -in /Users/user/.config/verdaccio/verdaccio-csr.pem -signkey /Users/user/.config/verdaccio/verdaccio-key.pem -out /Users/user/.config/verdaccio/verdaccio-cert.pem

    
    * Edite su archivo config `/Users/user/.config/verdaccio/config.yaml`y añada la próxima sección
    
    
    
    

https: key: /Users/user/.config/verdaccio/verdaccio-key.pem cert: /Users/user/.config/verdaccio/verdaccio-cert.pem ca: /Users/user/.config/verdaccio/verdaccio-csr.pem

<br />Alternativamente, si tiene un certificado de formato `server.pfx`, puede añadir la siguiente sección de configuración. La propiedad passphrase es opcional y solo necesaria en caso de que su certificado esté encriptado.

https: pfx: /Users/user/.config/verdaccio/server.pfx passphrase: 'secret' ````

Puede encontrar más información referente a los argumentos key, cert, ca, pfx y passphrase, en la Documentación de nodes

  • Corra verdaccio en su línea de comandos.

  • Abra el explorador y cargue https://your.domain.com:port/

Estas instrucciones son válidas mayormente para OSX y Linux. Para Windows, las rutas serán diferentes, pero los pasos a seguir son iguales.

Docker

Si está usando la imagen Docker, debe configurar la variable de entorno PROTOCOL como https ya que el argumento listen es proporcionado por Dockerfile y, por lo tanto, ignora lo establecido en su archivo config.

También puede configurar la variable de entorno PORT si está usando un puerto diferente a 4873.