Creating wrong CSR size

Operating system CentOS Linux 5.5 Webmin version 1.530
Virtualmin version 3.82.gpl GPL

Virtual Server > Server Configuration > Manage SSL Certificate > Signing Request

Filled in all fields (except 'Other domain names'), stuck with default key size (2048) and consistently got wrong key size errors from 2 different authorities. Tried again and manually entered 2048 in the key size and CSR accepted immediately.

Status: 
Closed (fixed)

Comments

What key size is your CA reporting that the failing CSR has? The default in Virtualmin should always be 2048, unless changed at System Settings -> Virtualmin Configuration -> SSL settings -> Default SSL key size.

Unfortunately, the only error I received from either (QuickSSL Premium and AlphaSSL - Both free trials) was invalid key size errors without reporting the actual key size. Both errors stated that the key size must be equal or greater than 2048.

The System Settings -> Virtualmin Configuration -> SSL settings -> Default SSL key size = 2048 and has not been changed.

This is a fresh install and the first CSR to be created.

You can check to see what key size the CSR has with the command :

openssl req -in /path/to/ssl.csr -text | grep "RSA Public Key"

openssl req -in /my/path/ssl.csr -text | grep "RSA Public Key"

RSA Public Key: (1024 bit)

[Attached] Screenshot of signing request screen and details

Ok, so it is clearly creating the key too small ...

What is the output from the following command on your system :

grep key_size /etc/webmin/virtual-server/config

Ok, that corresponds to the setting in the UI at System Settings -> Virtualmin Configuration -> SSL settings -> Default SSL key size. You should change it from 1024 to 2048..

OK, Done that.

Many thanks Jamie, as always your help has been invaluable.

Automatically closed -- issue fixed for 2 weeks with no activity.