Jump to content

SSL Issue


andyhill

Recommended Posts

Yes, my ISP did the cert request for me with the info you suggested in the UniGUI docs.

 

I have asked him to confirm if he did everything required, this is what I sent him (xxxxxxxxx is the domain name):-

 

openssl.exe req -days 365 -nodes -newkey rsa:1024 -keyout xxxxxxxxx-key.pem -out xxxxxxxxx-cert.pem

 

Waiting for his reply ...

Link to comment
Share on other sites

This is what I learned.

 

1) GoDaddy defaults Certificate Length to 2yrs so requesting 365 days failed for me.

 

2) GoDaddy rsa must be 2048, 1024 failed for me.

 

3) openssl.exe req -new -newkey rsa:2048 -nodes -keyout key.pem -out req.csr

 

Once processed and granted.

 

  if SSLFlag = True then begin
    if FileExists(UniServerModule.StartPath + 'Root.crt') = True then begin
      if FileExists(UniServerModule.StartPath + 'Cert.crt') = True then begin
        if FileExists(UniServerModule.StartPath + 'Key.pem') = True then begin
          SSL.SSLOptions.RootCertFile:= UniServerModule.StartPath + 'Root.crt';
          SSL.SSLOptions.CertFile:=     UniServerModule.StartPath + 'Cert.crt';
          SSL.SSLOptions.KeyFile:=      UniServerModule.StartPath + 'Key.pem';  // Possible UniGUI Bug - file must have .pem extension - same file contents with .crt extension fails
          if Trim(SSLPassword) <> '' then begin
            SSL.SSLPassword:= SSLPassword;
          end;
          SSL.SSLPort:= SSLPort;
          SSL.Enabled:= True;
        end;
      end;
    end;
  end;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...