mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
14.05k stars 1.44k forks source link

Allow DSA end EllipticCurve private keys to be used additionally to RSA. #2416

Open tstanczak opened 4 months ago

tstanczak commented 4 months ago

The purpose of the changes is to allow EC and DSA based private key (and in turn SSL certificates) to be used additionally to RSA private keys. In order to achieve this checking the types of loaded PEM files has been extended. Checking of the first line of the PEM files on the other side has been reduced to the ending, so that something like "EC PRIVATE KEY" gets accepted as well as "RSA PRIVATE KEY" or just "PRIVATE KEY".