Create and move certs for use with spawned notebooks

Add Localhost to trusted alt names

Update to match refactored certipy names

Add the FQDN to cert alt names for hub

Ensure notebooks do not trust each other

Drop certs in user's home directory

Refactor cert creation and movement

Make alt names configurable

Make attaching alt names more generic

Setup ssl_context for the singleuser hub check
This commit is contained in:
Thomas Mendoza
2018-06-07 16:00:38 -07:00
parent c5faf2c5ea
commit 753bd0701f
4 changed files with 108 additions and 22 deletions

View File

@@ -218,6 +218,8 @@ class User:
internal_ssl=self.settings.get('internal_ssl'),
internal_certs_location=self.settings.get('internal_certs_location'),
internal_authority_name=self.settings.get('internal_authority_name'),
internal_notebook_authority_name=self.settings.get('internal_notebook_authority_name'),
trusted_alt_names=self.settings.get('trusted_alt_names'),
)
# update with kwargs. Mainly for testing.
spawn_kwargs.update(kwargs)