Skip to content

Commit

Permalink
Allow requestCert option to be set (elastic#38920) (elastic#38941)
Browse files Browse the repository at this point in the history
This allows you to pass the option in correctly to the constructor
  • Loading branch information
toddself authored Jun 14, 2019
1 parent 58c267b commit abd7ba9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/server/http/ssl_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const sslSchema = schema.object(
schema.oneOf([schema.literal('TLSv1'), schema.literal('TLSv1.1'), schema.literal('TLSv1.2')]),
{ defaultValue: ['TLSv1.1', 'TLSv1.2'], minSize: 1 }
),
requestCert: schema.maybe(schema.boolean({ defaultValue: false })),
},
{
validate: ssl => {
Expand Down Expand Up @@ -85,6 +86,7 @@ export class SslConfig {
this.keyPassphrase = config.keyPassphrase;
this.cipherSuites = config.cipherSuites;
this.supportedProtocols = config.supportedProtocols;
this.requestCert = config.requestCert;
}

/**
Expand Down

0 comments on commit abd7ba9

Please sign in to comment.