|
|
|
@ -29,7 +29,6 @@ import org.bouncycastle.openssl.PEMKeyPair; |
|
|
|
import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter; |
|
|
|
import org.bouncycastle.openssl.jcajce.JcePEMDecryptorProviderBuilder; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
import org.thingsboard.mqtt.MqttClientConfig; |
|
|
|
|
|
|
|
import javax.crypto.Cipher; |
|
|
|
import javax.crypto.EncryptedPrivateKeyInfo; |
|
|
|
@ -80,11 +79,6 @@ public class CertPemClientCredentials implements MqttClientCredentials { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void configure(MqttClientConfig config) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private KeyManagerFactory createAndInitKeyManagerFactory() throws Exception { |
|
|
|
X509Certificate certHolder = readCertFile(cert); |
|
|
|
Object keyObject = readPrivateKeyFile(privateKey); |
|
|
|
|