Thanks Danijel,
I tried using GetFullPath (see:
http://docwiki.embarcadero.com/VCL/XE/en/IOUtils.TPath.GetFullPath which Returns the absolute path for a given path.), but still can't get my RTC/SSL Server to run as a service.
begin
...
ReleaseCryptPlugins;
// Windows Services are running from the Windows System folder and not from the
// EXE folder. Use absolute paths for all file names (SSL certificate files).
CertFile := TPath.GetFullPath( MyCertFile );
AddServerRootCertFile( CertFile {'c:\MyDemo\root.cer'} );
PFXFile := TPath.GetFullPath( MyPFXFile );
AddServerPFXFile( PFXFile {'c:\MyDemo\server.pfx'}, MyPFXKey { 'abc' });
RtcHttpServer1.CryptPlugin := GetServerCryptPlugin;
RtcHttpServer1.Listen();
...
end;
Is that what you meant? Got a code example?