Skip to content

Commit 7eefd6f

Browse files
GaikwadPratikamarzavery
authored andcommitted
add tls options in ConnectionOptions (#273)
1 parent 50c66c3 commit 7eefd6f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

typings/connection.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,28 @@ export interface ConnectionOptions extends EndpointOptions {
189189
* from peer should not prevent reconnect (by default this only includes `"amqp:connection:forced"`).
190190
*/
191191
non_fatal_errors?: string[];
192+
/**
193+
* @property {string} [key] The private key of the certificate to be used with tls connection option
194+
*/
195+
key?: string,
196+
/**
197+
* @property {string} [cert] The certificate to be used with tls connection option
198+
*/
199+
cert?: string,
200+
/**
201+
* @property {string} [ca] The CA certificate used for signing certificate to be used with tls connection option
202+
*/
203+
ca?: string,
204+
/**
205+
* @property {boolean} [requestCert] Flag to indicate client authentication to be used with tls connection option
206+
* This is used in opening socket by nodejs
207+
*/
208+
requestCert?: boolean,
209+
/**
210+
* @property {boolean} [rejectUnauthorized] Flag to indicate if certificate is self signed to be used with tls connection option
211+
* This is used in opening socket by nodejs
212+
*/
213+
rejectUnauthorized?: boolean
192214
}
193215

194216
/**

0 commit comments

Comments
 (0)