HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/OpenSSL/SSL/SSLContext/add_certificate-i.ri
U:RDoc::AnyMethod[iI"add_certificate:ETI"-OpenSSL::SSL::SSLContext#add_certificate;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"OAdds a certificate to the context. _pkey_ must be a corresponding private ;TI"key with _certificate_.;To:RDoc::Markup::BlankLineo;
;	[I"JMultiple certificates with different public key type can be added by ;TI"Qrepeated calls of this method, and OpenSSL will choose the most appropriate ;TI"&certificate during the handshake.;T@o;
;	[I"P#cert=, #key=, and #extra_chain_cert= are old accessor methods for setting ;TI"1certificate and internally call this method.;T@S:RDoc::Markup::Heading:
leveli:	textI"Parameters;To:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I"_certificate_;T;	[o;
;	[I">A certificate. An instance of OpenSSL::X509::Certificate.;To;;[I"_pkey_;T;	[o;
;	[I"KThe private key for _certificate_. An instance of OpenSSL::PKey::PKey.;To;;[I"_extra_certs_;T;	[o;
;	[I"FOptional. An array of OpenSSL::X509::Certificate. When sending a ;TI"Ncertificate chain, the certificates specified by this are sent following ;TI"._certificate_, in the order in the array.;T@S;;
i;I"Example;To:RDoc::Markup::Verbatim;	[I"4rsa_cert = OpenSSL::X509::Certificate.new(...)
;TI"(rsa_pkey = OpenSSL::PKey.read(...)
;TI"@ca_intermediate_cert = OpenSSL::X509::Certificate.new(...)
;TI"Ectx.add_certificate(rsa_cert, rsa_pkey, [ca_intermediate_cert])
;TI"
;TI"ecdsa_cert = ...
;TI"ecdsa_pkey = ...
;TI"another_ca_cert = ...
;TI"Dctx.add_certificate(ecdsa_cert, ecdsa_pkey, [another_ca_cert])
;T:@format0S;;
i;I"	Note;To;
;	[I"OOpenSSL before the version 1.0.2 could handle only one extra chain across ;TI"Jall key types. Calling this method discards the chain set previously.;T:
@fileI"ext/openssl/ossl_ssl.c;T:0@omit_headings_from_table_of_contents_below0I"Dctx.add_certificate(certiticate, pkey [, extra_certs]) -> self
;T0[I"(p1, p2, p3 = v3);T@GFI"SSLContext;TcRDoc::NormalClass00