CBSConnection.getCertificate Member

Syntax

object.getCertificate();

Returns

Remarks

See Also

Source Code

function bc_getcertificate()
{
if (!this.isConnected || !this._transport.securityInfo)
return null;
var sslSp = Components.interfaces.nsISSLStatusProvider;
var sslStatus = Components.interfaces.nsISSLStatus;
// Get the actual SSL Status
sslSp = this._transport.securityInfo.QueryInterface(sslSp);
sslStatus = sslSp.SSLStatus.QueryInterface(sslStatus);
// return the certificate
return sslStatus.serverCert;
}