On Thu, Nov 19, 2009 at 8:26 AM, William Stein <wst...@gmail.com> wrote:
> On Thu, Nov 19, 2009 at 3:33 AM, John Cremona <john.crem...@gmail.com> wrote:
>> I am having exactly the same problem as the original poster.  The
>> machine runs 64-bit ubuntu (Linux version 2.6.28-13-generic
>> (bui...@yellow) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #44-
>> Ubuntu SMP Tue Jun 2 07:55:09 UTC 2009)
>>
>> I don't have certtool installed on the machine (except the Sage
>> version).
>
> Can you try installing the system-wide certtool and see what happens?
>
> GNU provides one implementation of certtool and openssl provides another.
> The openssl one is excellent and robust -- the GNU one is often insanely slow.
> Sage has to include the GNU one...
>

Hi,

I kept suggesting the above, because long ago I wrote this code in dsage:

-------------
    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]
        print "Using openssl to generate key"
        print cmd[0]
        subprocess.call(cmd, shell=True)
-------------

So I thought people were having issues with slow keys since they
didn't have openssl installed.   That's why I suggested installing it.
However, I just checked and the above code evidently mysteriously
morphed into the following several months ago:

-------------
    if False and 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]
        print "Using openssl to generate key"
        print cmd[0]
        subprocess.call(cmd, shell=True)
    else:...
-------------

I'm guessing somebody tested certtool on one platform where they got
lucky and certtool seemed to actually work in a reasonable amount of
time, and concluded the issue was fixed.  Nope.

Please referee

   http://trac.sagemath.org/sage_trac/ticket/7800

which reverts this behavior, switching back to using openssl if available.

>>
>> While it hangs at the point "Generating a 2048 bit RSA private
>> key..."  I checked what was happening in another window:
>>
>> j...@selmer%ps aux | grep certtool
>> sage     13068  0.0  0.0   4028   588 pts/7    S<+  11:05   0:00 /bin/
>> sh -c certtool --generate-privkey --outfile /home/sage/.sage/dsage/
>> cacert.pem
>> sage     13069  0.0  0.0  15960  1480 pts/7    S<+  11:05   0:00
>> certtool --generate-privkey --outfile /home/sage/.sage/dsage/
>> cacert.pem
>>
>> Note that this is 25 minutes after starting to wait, and that certtool
>> is doing nothing at all (S means Suspended, right?)
>>
>> I tried running the certtool command outside Sage (after doing "sage -
>> sh"), namely
>>  certtool --generate-privkey --outfile /home/sage/.sage/dsage/
>> cacert.pem
>> but the same happened, i.e. nothing and no return...
>
>
>>
>> Any ideas for how to sort this out would be welcome.  And it would be
>> nice to be able to test the correct running of certtool when Sage is
>> built.
>>
>> John Cremona
>>
>>
>> On 16 Nov, 09:45, "marc.burw...@googlemail.com"
>> <philipp.kl...@gmail.com> wrote:
>>> In my case just waiting for about 10 minutes solved the problem as the
>>> entropy on the computer where I started sage was too low.
>>>
>>> greetings marc
>>>
>>> On Nov 12, 3:22 am, Kwankyu <ekwan...@gmail.com> wrote:
>>>
>>> > Hi,
>>>
>>> > I have a problem starting a sage server after, I think, upgrading to
>>> > Ubuntu 9.10 server edition. It just hangs at the point "Generating a
>>> > 2048 bit RSA private key..." See the following transcript
>>> > [...]
>>
>> --
>> To post to this group, send email to sage-support@googlegroups.com
>> To unsubscribe from this group, send email to 
>> sage-support-unsubscr...@googlegroups.com
>> For more options, visit this group at 
>> http://groups.google.com/group/sage-support
>> URL: http://www.sagemath.org
>
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to