I tried generating a CSR by following Heroku instructions. Specifically
openssl genrsa -des3 -out server.pass.key 2048
openssl rsa -in server.pass.key -out server.key
openssl req -nodes -new -key server.key -out server.csr
# input data here
I get the following error:
140509003069088:error:04075070:rsa routines:RSA_sign:digest too big for rsa key:rsa_sign.c:127:
140509003069088:error:0D0DC006:asn1 encoding routines:ASN1_item_sign_ctx:EVP lib:a_sign.c:314:
I am using openssl version:
OpenSSL> version
OpenSSL 1.0.1f 6 Jan 2014
What am I doing wrong?