X509 cert saved in db

This commit is contained in:
Valerii Sosliuk 2017-01-13 18:45:48 -05:00
parent f649ef57ce
commit 62f8dc198d
2 changed files with 10 additions and 9 deletions

View File

@ -76,10 +76,11 @@ mqtt:
adaptor: "${MQTT_ADAPTOR_NAME:JsonMqttAdaptor}"
timeout: "${MQTT_TIMEOUT:10000}"
# Uncomment the following lines to enable ssl for MQTT
ssl:
key_store: keystore/mqttserver.jks
key_store_password: password
key_store_type: JKS
# ssl:
# key_store: keystore/mqttserver.jks
# key_store_password: server_ks_password
# key_password: server_key_password
# key_store_type: JKS
# CoAP server parameters
coap:

View File

@ -1,12 +1,12 @@
/**
* Copyright © 2016-2017 The Thingsboard Authors
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -51,7 +51,7 @@ public class MqttSslHandlerProvider {
private String keyStorePassword;
@Value("${mqtt.ssl.key_store_type}")
private String keyStoreType;
@Autowired
private DeviceCredentialsService deviceCredentialsService;