Certificate (Socket function): Difference between revisions
Jump to navigation
Jump to search
m (minor cleanup) |
m (→See also: add links) |
||
Line 32: | Line 32: | ||
==See also== | ==See also== | ||
<p> | |||
<var>String</var> class: </p> | |||
<ul> | <ul> | ||
<li><var>String</var> | <li><var>[[CertificateRequest (String function)|CertificateRequest]]</var> </li> | ||
<li><var> | |||
<li><var> | <li><var>[[SignedCertificate (String function)|SignedCertificate]]</var> </li> | ||
<li><var>Stringlist</var> | |||
<li><var>[[DerToXmlDoc (String function)|DerToXmlDoc]]</var> </li> | |||
<li><var>[[RSAPrivateKeyToXmlDoc (String function)|RSAPrivateKeyToXmlDoc]]</var></li> | |||
<li><var>[[X509CertificateToXmlDoc (String function)|X509CertificateToXmlDoc]]</var> </li> | |||
<li><var>[[X509CrlToXmlDoc (String function)|X509CrlToXmlDoc]]</var> </li> | |||
</ul> | |||
<p> | |||
<var>Stringlist</var> methods: </p> | |||
<ul> | |||
<li><var>[[AppendCertificateInfo (Stringlist function)|AppendCertificateInfo]]</var></li> | |||
<li><var>[[AppendCertificateRequest (Stringlist function)|AppendCertificateRequest]]</var></li> | |||
<li><var>[[AppendCertificateRequestInfo (Stringlist function)|AppendCertificateRequestInfo]]</var></li> | |||
<li><var>[[AppendClientCertificateRequest (Stringlist function)|AppendClientCertificateRequest]]</var></li> | |||
<li><var>[[AppendEncryptedSecurityData (Stringlist subroutine)|AppendEncryptedSecurityData]]</var></li> | |||
<li><var>[[AppendGeneratedPrivateKey (Stringlist subroutine)|AppendGeneratedPrivateKey]]</var></li> | |||
<li><var>[[AppendSignedCertificate (Stringlist function)|AppendSignedCertificate]]</var></li> | |||
<li><var>[[AppendSignedClientCertificate (Stringlist function)|AppendSignedClientCertificate]]</var></li> | |||
<li><var>[[CheckCertificate (Stringlist function)|CheckCertificate]]</var></li> | |||
<li><var>[[CheckCertificateRequest (Stringlist function)|CheckCertificateRequest]]</var></li> | |||
<li><var>[[PemToString (Stringlist function)|PemToString]]</var> and more</li> | |||
</ul> | |||
<p><var>System</var> methods: </p> | |||
<ul> | |||
<li><var>[[ClientCertificate (System function)|ClientCertificate]]</var> | |||
<li><var>[[GeneratedPrivateKey (System function)|GeneratedPrivateKey]]</var> </li> | |||
</ul> | |||
<p><var>HttpRequest</var> methods: </p> | |||
<ul> | |||
<li><var>[[Get (HttpRequest function)|Get]]</var> </li> | |||
<li><var>[[Post (HttpRequest function)|Post]]</var> </li> | |||
<li><var>[[Send (HttpRequest function)|Send]]</var> </li> | |||
</ul> | </ul> | ||
{{Template:Socket:Certificate footer}} | {{Template:Socket:Certificate footer}} |
Revision as of 20:39, 14 March 2016
Retrieve the SSL certificate (Socket class)
[Introduced in Sirius Mods 8.0]
This method enables a server socket to get a Longstring version of a client socket's SSL certificate.
Syntax
%string = socket:Certificate[( [RequestCertificate= boolean])]
Syntax terms
%string | A Longstring to contain a copy of the binary, ASN.1 encoded, content of the SSL certificate presented by the client socket (if socket is a server socket). If no certificate is provided (for whatever reason), %string is a null string. If socket is a client socket, %string is always a null string. |
---|---|
socket | A variable or an expression that is a reference to a server or client Socket object. |
RequestCertificate | This name required argument is a Boolean enumeration. If the value is True :
If the argument value is |
Usage notes
- Specifying
RequestCertificate=True
only has an effect for a Janus SSL port whose definition does not include SSLCLCERT or SSLCLCERTR. These parameters request a client certificate at connection-establishment time, and a client certificate may only be requested once for an SSL session (whether or not the request successfully gets a certificate in return).
See also
String class:
- CertificateRequest
- SignedCertificate
- DerToXmlDoc
- RSAPrivateKeyToXmlDoc
- X509CertificateToXmlDoc
- X509CrlToXmlDoc
Stringlist methods:
- AppendCertificateInfo
- AppendCertificateRequest
- AppendCertificateRequestInfo
- AppendClientCertificateRequest
- AppendEncryptedSecurityData
- AppendGeneratedPrivateKey
- AppendSignedCertificate
- AppendSignedClientCertificate
- CheckCertificate
- CheckCertificateRequest
- PemToString and more
System methods:
HttpRequest methods: