File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,6 +290,23 @@ def _ensure_curve_keypair(self):
290290 """ ,
291291 )
292292
293+ curve_key_file = Unicode (
294+ config = True ,
295+ help = """The zmq Curve certificate file to store credentials.
296+ If specified, read curve credentials from this file.
297+ """ ,
298+ )
299+
300+ @observe ("curve_certificate" )
301+ def curve_certificate_dir_changed (self , change ):
302+ if change .new :
303+ path = change .new
304+ name = f"ipcontroller-{ self .cluster_id } " .rstrip ("-" )
305+ if os .path .exists (path ):
306+ pass
307+
308+ session_key = Bytes ()
309+
293310 @validate ("curve_publickey" , "curve_secretkey" )
294311 def _cast_bytes (self , proposal ):
295312 if isinstance (proposal .value , str ):
Original file line number Diff line number Diff line change @@ -377,18 +377,6 @@ def terminate_children(sig, frame):
377377 signal (sig , terminate_children )
378378
379379
380- def generate_exec_key (keyfile ):
381- import uuid
382-
383- newkey = str (uuid .uuid4 ())
384- with open (keyfile , 'w' ) as f :
385- # f.write('ipython-key ')
386- f .write (newkey + '\n ' )
387- # set user-only RW permissions (0600)
388- # this will have no effect on Windows
389- os .chmod (keyfile , stat .S_IRUSR | stat .S_IWUSR )
390-
391-
392380def integer_loglevel (loglevel ):
393381 try :
394382 loglevel = int (loglevel )
You can’t perform that action at this time.
0 commit comments