Socket
Socket
Sign inDemoInstall

aws-crt

Package Overview
Dependencies
Maintainers
4
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-crt - npm Package Compare versions

Comparing version 1.11.3 to 1.12.0

9

dist/native/aws_iot.d.ts

@@ -69,2 +69,11 @@ /**

static new_mtls_pkcs11_builder(pkcs11_options: TlsContextOptions.Pkcs11Options): AwsIotMqttConnectionConfigBuilder;
/**
* Create a new builder with mTLS using a certificate in a Windows certificate store.
*
* NOTE: This configuration only works on Windows devices.
* @param certificate_path - Path to certificate in a Windows certificate store.
* The path must use backslashes and end with the certificate's thumbprint.
* Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6`
*/
static new_mtls_windows_cert_store_path_builder(certificate_path: string): AwsIotMqttConnectionConfigBuilder;
static new_websocket_builder(...args: any[]): AwsIotMqttConnectionConfigBuilder;

@@ -71,0 +80,0 @@ private static configure_websocket_handshake;

@@ -103,2 +103,18 @@ "use strict";

}
/**
* Create a new builder with mTLS using a certificate in a Windows certificate store.
*
* NOTE: This configuration only works on Windows devices.
* @param certificate_path - Path to certificate in a Windows certificate store.
* The path must use backslashes and end with the certificate's thumbprint.
* Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6`
*/
static new_mtls_windows_cert_store_path_builder(certificate_path) {
let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_windows_cert_store_path(certificate_path));
builder.params.port = 8883;
if (io.is_alpn_available()) {
builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca');
}
return builder;
}
static new_websocket_builder(...args) {

@@ -105,0 +121,0 @@ return this.new_with_websockets(...args);

1

dist/native/binding.d.ts

@@ -61,2 +61,3 @@ /*

pkcs11_options?: TlsContextOptions.Pkcs11Options,
windows_cert_store_path?: StringLike,
verify_peer?: boolean,

@@ -63,0 +64,0 @@ ): NativeHandle;

@@ -128,2 +128,4 @@ /// <reference types="node" />

pkcs11_options?: TlsContextOptions.Pkcs11Options;
/** Path to certificate in a Windows cert store. Windows only. */
windows_cert_store_path?: string;
/**

@@ -193,2 +195,13 @@ * In client mode, this turns off x.509 validation. Don't do this unless you are testing.

/**
* Create options configured for mutual TLS in client mode,
* using a certificate in a Windows certificate store.
*
* NOTE: Windows only.
*
* @param certificate_path - Path to certificate in a Windows certificate store.
* The path must use backslashes and end with the certificate's thumbprint.
* Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6`
*/
static create_client_with_mtls_windows_cert_store_path(certificate_path: string): TlsContextOptions;
/**
* Creates TLS context with peer verification disabled, along with a certificate and private key

@@ -195,0 +208,0 @@ * @param certificate_filepath - Path to certificate, in PEM format

@@ -250,2 +250,18 @@ "use strict";

/**
* Create options configured for mutual TLS in client mode,
* using a certificate in a Windows certificate store.
*
* NOTE: Windows only.
*
* @param certificate_path - Path to certificate in a Windows certificate store.
* The path must use backslashes and end with the certificate's thumbprint.
* Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6`
*/
static create_client_with_mtls_windows_cert_store_path(certificate_path) {
let opt = new TlsContextOptions();
opt.windows_cert_store_path = certificate_path;
opt.verify_peer = true;
return opt;
}
/**
* Creates TLS context with peer verification disabled, along with a certificate and private key

@@ -292,3 +308,3 @@ * @param certificate_filepath - Path to certificate, in PEM format

constructor(ctx_opt) {
super(binding_1.default.io_tls_ctx_new(ctx_opt.min_tls_version, ctx_opt.ca_filepath, ctx_opt.ca_dirpath, ctx_opt.certificate_authority, (ctx_opt.alpn_list && ctx_opt.alpn_list.length > 0) ? ctx_opt.alpn_list.join(';') : undefined, ctx_opt.certificate_filepath, ctx_opt.certificate, ctx_opt.private_key_filepath, ctx_opt.private_key, ctx_opt.pkcs12_filepath, ctx_opt.pkcs12_password, ctx_opt.pkcs11_options, ctx_opt.verify_peer));
super(binding_1.default.io_tls_ctx_new(ctx_opt.min_tls_version, ctx_opt.ca_filepath, ctx_opt.ca_dirpath, ctx_opt.certificate_authority, (ctx_opt.alpn_list && ctx_opt.alpn_list.length > 0) ? ctx_opt.alpn_list.join(';') : undefined, ctx_opt.certificate_filepath, ctx_opt.certificate, ctx_opt.private_key_filepath, ctx_opt.private_key, ctx_opt.pkcs12_filepath, ctx_opt.pkcs12_password, ctx_opt.pkcs11_options, ctx_opt.windows_cert_store_path, ctx_opt.verify_peer));
}

@@ -295,0 +311,0 @@ }

2

package.json
{
"name": "aws-crt",
"version": "1.11.3",
"version": "1.12.0",
"description": "NodeJS/browser bindings to the aws-c-* libraries",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/awslabs/aws-crt-nodejs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc