#7800: dsage -- re-enable use of openssl to certificate keys, if openssl is
installed  (why the notebook in secure mode is so slow to generate initial
keys!)
----------------------+-----------------------------------------------------
   Reporter:  was     |       Owner:  tbd                  
       Type:  defect  |      Status:  needs_review         
   Priority:  major   |   Milestone:  sage-4.3.1           
  Component:  dsage   |    Keywords:  notebook secure dsage
Work_issues:          |      Author:                       
   Upstream:  N/A     |    Reviewer:                       
     Merged:          |  
----------------------+-----------------------------------------------------
Description changed by mvngu:

Old description:

> For some mysterious reason somebody disabled use of openssl with dsage to
> create certificates. This new spkg fixes this problem. The actual patch
> is a simple 1-liner:
> {{{
> wst...@boxen:~/build/referee/sage-4.3/spkg/standard/dsage-1.0.1.p0/src/dsage/scripts$
> hg diff
> diff --git a/dsage/scripts/dsage_setup.py b/dsage/scripts/dsage_setup.py
> --- a/dsage/scripts/dsage_setup.py
> +++ b/dsage/scripts/dsage_setup.py
> @@ -174,7 +174,7 @@
>      print DELIMITER
>      print "Generating SSL certificate for server..."
>
> -    if False and os.uname()[0] != 'Darwin' and cmd_exists('openssl'):
> +    if os.uname()[0] != 'Darwin' and cmd_exists('openssl'):
>          # We use openssl by default if it exists, since it is *vastly*
>          # faster on Linux.
>          cmd = ['openssl genrsa > %s' % privkey_file]
> }}}
>
> Without this, on many platforms -- e.g., sage.math -- it takes hours to
> generate keys, since GNUtls's key generation program is crap.

New description:

 See [http://groups.google.com/group/sage-
 support/browse_thread/thread/dec883b4fab3b942 sage-devel] for some
 history.
 [[BR]]


 For some mysterious reason somebody disabled use of openssl with dsage to
 create certificates. This new spkg fixes this problem. The actual patch is
 a simple 1-liner:
 {{{
 
wst...@boxen:~/build/referee/sage-4.3/spkg/standard/dsage-1.0.1.p0/src/dsage/scripts$
 hg diff
 diff --git a/dsage/scripts/dsage_setup.py b/dsage/scripts/dsage_setup.py
 --- a/dsage/scripts/dsage_setup.py
 +++ b/dsage/scripts/dsage_setup.py
 @@ -174,7 +174,7 @@
      print DELIMITER
      print "Generating SSL certificate for server..."

 -    if False and os.uname()[0] != 'Darwin' and cmd_exists('openssl'):
 +    if os.uname()[0] != 'Darwin' and cmd_exists('openssl'):
          # We use openssl by default if it exists, since it is *vastly*
          # faster on Linux.
          cmd = ['openssl genrsa > %s' % privkey_file]
 }}}

 Without this, on many platforms -- e.g., sage.math -- it takes hours to
 generate keys, since GNUtls's key generation program is crap.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7800#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.


Reply via email to