On Sun, May 31, 2009 at 5:34 AM, Dr. David Kirkby
<[email protected]> wrote:
>
> William Stein wrote:
>
>> Did you try
>>
>> sage: notebook(secure=True)
>>
>> ?
>
> I had not tried an encrypted link. I did not know Sage supported this,
> and was going to mention it as potentailly useful. I can see you have
> beaten me to it.
>
> I can think of occasions where I would have liked to show someone
> results, but would not have felt happy doing it over a non-encrypted
> link. (Obviously, this tends to be less of a concern in academic circles
> than industrial environments).
>
> But I've since 'notebook(secure=True)'. I get one of two errors with
> this, depending on whether I use sage-4.0.rc0 or sage-4.0.rc1. I've put
> both below, but have put a few rows of '**************' so you can see
> clearly wh
>
> 1) sage-4.0.rc0
>
> hangs when generating the private key:
>
> drkir...@kestrel:[~/sage/sage-4.0.rc0] $ ./sage
> ----------------------------------------------------------------------
> | Sage Version 4.0.rc0, Release Date: 2009-05-21 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
> sage: notebook(secure=True)
> The notebook files are stored in: /export/home/drkirkby/.sage//sage_notebook
> In order to use an SECURE encrypted notebook, you must first run
> notebook.setup().
> Now running notebook.setup()
> Using dsage certificates.
> ==================================================
> Generating public/private key pair for authentication...
> Your key will be stored in /export/home/drkirkby/.sage/dsage/dsage_key
> Just hit enter when prompted for a passphrase
> ==================================================
> Enter passphrase (empty for no passphrase):
> Enter same passphrase again:
>
>
> Client configuration finished.
>
> Worker configuration finished.
>
> Choose a domain name for your SAGE notebook server,
> for example, localhost (personal use) or kestrel.drkirkby.co.uk (to
> allow outside connections).
> Domain name [localhost]:
> Using default localhost
> ==================================================
> Generating SSL certificate for server...
> Using certtool to generate key
> certtool --generate-privkey --outfile
> /export/home/drkirkby/.sage/dsage/cacert.pem
>
> Here is just hangs forever.
>
> 'certtool' is not part of Solaris, but I did happen to have a copy I'd
> downloaded from Blastwave. That tool works fine if called from the
> command line.
>
>
> ********************************************************************************
> ********************************************************************************
> ********************************************************************************
> ********************************************************************************
> ********************************************************************************
>
>
>
> 2) Using 4.0.rc1 I get a different problem - see below.
That's caused by you killing (1) above when it wasn't done. By the
way, for (1) how long did you wait -- for me I had to wait quite a
while for the certificate to be generated.
Try deleting $HOME/.sage and starting over.
>
> drkir...@kestrel:[~/sage/sage-4.0.rc1] $ ./sage
> ----------------------------------------------------------------------
> | Sage Version 4.0.rc1, Release Date: 2009-05-28 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
> sage: notebook(secure=True)
> The notebook files are stored in: /export/home/drkirkby/.sage//sage_notebook
> In order to use an SECURE encrypted notebook, you must first run
> notebook.setup().
> Now running notebook.setup()
> Using dsage certificates.
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (5, 0))
>
> ---------------------------------------------------------------------------
> NameError Traceback (most recent call last)
>
> /export/home/drkirkby/.sage/<ipython console> in <module>()
>
> /export/home/drkirkby/sage/sage-4.0.rc1/local/lib/python2.5/site-packages/sage/server/notebook/notebook_object.pyc
> in __call__(self, *args, **kwds)
> 163 """
> 164 def __call__(self, *args, **kwds):
> --> 165 return self.notebook(*args, **kwds)
> 166
> 167 notebook = run_notebook.notebook_twisted
>
> /export/home/drkirkby/sage/sage-4.0.rc1/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.pyc
> in notebook_twisted(self, directory, port, address, port_tries, secure,
> reset, accounts, require_login, server_pool, ulimit, timeout,
> open_viewer, sagetex_path, start_path, fork, quiet)
> 278 if open_viewer:
> 279 "Open viewer automatically isn't fully implemented.
> You have to manually open your web browser to the above URL."
> --> 280 return run(port)
> 281
> 282
>
> /export/home/drkirkby/sage/sage-4.0.rc1/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.pyc
> in run(port)
> 146 print "In order to use an SECURE encrypted
> notebook, you must first run notebook.setup()."
> 147 print "Now running notebook.setup()"
> --> 148 notebook_setup()
> 149 if not os.path.exists(private_pem) or not
> os.path.exists(public_pem):
> 150 print "Failed to setup notebook. Please try
> notebook.setup() again manually."
>
> /export/home/drkirkby/sage/sage-4.0.rc1/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.pyc
> in notebook_setup(self)
> 39 print "Using dsage certificates."
> 40 dsage = os.path.join(DOT_SAGE, 'dsage')
> ---> 41 sage.dsage.all.dsage.setup()
> 42 shutil.copyfile(dsage + '/cacert.pem', private_pem)
> 43 shutil.copyfile(dsage + '/pubcert.pem', public_pem)
>
> NameError: global name 'sage' is not defined
>
>
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---