Server.Certificate Property
Returns the server’s certificate configuration for the SSL protocol.
Description
The Certificate property provides access to the SSL certificate configuration used by the server for secure HTTPS connections.
Syntax
public ICertificate Certificate;
Property Value
Type: ICertificate
Interface that defines the structure and properties of the server’s SSL certificate.
Example
Server server = new Server();
// Access the certificate configuration
ICertificate cert = server.Certificate;
// Check if a certificate is configured
if (cert != null)
{
Console.WriteLine("SSL certificate configured");
}