synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

Fixed "Error parsing certificate request" #223

Closed achechulin closed 8 months ago

achechulin commented 8 months ago

After latest changes TCryptCertAlgo.CreateSelfSignedCsr returns CSR in PEM encoding: TCryptCertAlgoOpenSsl.CreateSelfSignedCsr returns result := req^.ToPem;

But in previous version EVP_PKEY.CreateSelfSignedCsr returns result := req^.ToBinary();

So we need to add PemToDer conversion.

See: https://synopse.info/forum/viewtopic.php?pid=40481

synopse commented 8 months ago

Has been included in https://github.com/synopse/mORMot2/commit/b8a5e82ba5df93604daffbb0b9fbfed84f1e5e69