jupyter / nb2kg

Other
73 stars 31 forks source link

Shutting down all kernels managed by NB2KG doesn't work when SSL is enabled #4

Closed kevin-bates closed 6 years ago

kevin-bates commented 6 years ago

When issuing jupyter notebook stop $portnum with SSL configured, active notebooks fail to shutdown. Here are the steps...

1) Start Jupyter Enterprise Gateway (or Kernel Gateway) with self-signed cert and key: export KG_KEYFILE=${keyFilePath} export KG_CERTFILE=${sslCertPath}

2) Start Jupyter notebook (using same cert and key as 1))

3) Start remote kernel (remote kernel starts)

4) Attempt to stop Jupyter notebook server by issuing the following command, jupyter notebook stop $portnum

Nothing is posted in the JEG log. In the notebook/nb2kg log, however, is the following error:

[W 08:58:44.869 NotebookApp] SSL Error on 17 ('::1', 55238, 0, 0): [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:749)