Skip to content

Conversation

@sschwarzer
Copy link

@sschwarzer sschwarzer commented Jul 10, 2021

So far, this PR has these changes:

  • Use a longer password to prevent an error during key generation
  • Use a larger key size to stop stacktraces when starting the server

Please refer to the commit messages for details.

Use longer password, "dummy", instead of "a", for key generation with
`make keys`.

When running `make keys`, I see error messages of the form

  routines:UI_set_result_ex:result too small:crypto/ui/ui_lib.c:905:You
  must type in 4 to 1023 characters

and `private-key.pem` is generated with a length of 0 bytes.

According to https://bugzilla.redhat.com/show_bug.cgi?id=1467669 ,
this is because the used passwords are too short.
With the default key size of 1024, when I start the server with
`make compile run`, I see several stacktraces with the message

  #<thread:'package-change-handler>
  *** DAEMON CRASHED: main-web-server-thread ***
  ssl-load-certificate-chain!: load failed from: #<path:/home/schwa/sd/racket/racket-pkg-website/src/../server-cert.pem> (error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small)
    context...:

jfromaniello/selfsigned#33 suggests increasing
the key size to at least 2048 bits. Increasing the key size in the
Makefile makes the above stacktraces go away.

I set the key size in the Makefile to 4096 to make it more
"future-proof", but feel free to use a key size of 2048, which works for
me as well.
@sschwarzer sschwarzer changed the title Use longer password for key generation Fix key generation Jul 10, 2021
LiberalArtist added a commit to LiberalArtist/racket-pkg-website that referenced this pull request Jun 23, 2023
OpenSSL on my system refused to use certificates generated with the
old parameters.

Related to racket#78
jryans pushed a commit that referenced this pull request Jun 27, 2023
OpenSSL on my system refused to use certificates generated with the
old parameters.

Related to #78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant