View Issue Details

IDProjectCategoryView StatusLast Update
0009320VALENTINA SERVERREST APIpublic2024-02-26 09:48
ReporterDeltaworX Assigned ToIvan Smahin  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformALLOSALLOS VersionALL
Product Version13.7.x 
Fixed in Version13.8.x 
Summary0009320: REST_SSL-Certificate generates error: "error:0906D06C:PEM routines:PEM_read_bio:no start line."
DescriptionTrying to use a self-signed SSL certificate as REST SSL certificate results in an error messge when the VServer (13.9) starts.

The SSL certificate was generated with openssl:
openssl req -newkey rsa:2048 -nodes -keyout domain.key -x509 -days 1095 -out domain.crt

and coverted from PEM to PKCS12 with
openssl pkcs12 -inkey domain.key -in domain.crt -export -out domain.pfx

(did also try the SSLToolbox with csr request, but with the same result):

set_ssl_option: cannot open domain.pfx: error:0906D06C:PEM routines:PEM_read_bio:no start line.
REST start error - probably not valid REST SSL certificate (The file must contain both - private key and public certificate).

How do I create a self-signed SSL certificate to use inhouse with VServer as the rest ssl certificate?
TagsNo tags attached.

Activities

Ivan Smahin

Ivan Smahin

2024-02-20 11:11

manager   ~0012283

You may try just to merge PK and certificate files into a single file (copy the context of both files) and name it <something>.pem

BTW, what OS, version do you use?
DeltaworX

DeltaworX

2024-02-20 11:40

reporter   ~0012284

Thanks, that solves the problem - no more error messages at VServer start.

Maybe you can add this small note to the rest documentation, so other people who want to try REST SSL functionality inhouse with a self-signed certificate can find it easily...

I did try it on macOS 10.11 ("High Sierra") and macOS 14 8"Sonoma")

Issue History

Date Modified Username Field Change
2024-02-19 13:17 DeltaworX New Issue
2024-02-20 11:11 Ivan Smahin Note Added: 0012283
2024-02-20 11:40 DeltaworX Note Added: 0012284
2024-02-26 09:48 Ivan Smahin Assigned To => Ivan Smahin
2024-02-26 09:48 Ivan Smahin Status new => closed
2024-02-26 09:48 Ivan Smahin Resolution open => fixed
2024-02-26 09:48 Ivan Smahin Fixed in Version => 13.8.x