I don't know if I generated the certificate wrongly or if I'm doing something wrong but I seem to keep getting a error:
EIdOSSLLoadingRootCertError: Could not load root certificate.
error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
I can't remember the command I used to generate the certificate as it was something from online and I can't find it anymore.
After generating the certificate I'm trying to load it as follows:
wsServer.SSLOptions.CertFile := '.\ssl.pem';
wsServer.SSLOptions.KeyFile := '.\ssl.pem';
wsServer.SSLOptions.RootCertFile := '.\ssl.pem';
wsServer.SSLOptions.Version := tls1_2;
wsServer.SSLOptions.OpenSSL_Options.APIVersion := oslAPI_1_1;
wsServer.Port := 1001;
wsServer.SSLOptions.Port := 1002;
wsServer.SSL := True;
wsServer.Active := True;
How do i correctly Generate a certificate and then load it with the sgcWebsocketServer?