use of org.eclipse.californium.scandium.dtls.x509.StaticNewAdvancedCertificateVerifier in project thingsboard by thingsboard.
the class TbLwM2MDtlsBootstrapCertificateVerifier method init.
@SuppressWarnings("deprecation")
@PostConstruct
public void init() {
try {
/* by default trust all */
if (config.getTrustSslCredentials() != null) {
X509Certificate[] trustedCertificates = config.getTrustSslCredentials().getTrustedCertificates();
staticCertificateVerifier = new StaticNewAdvancedCertificateVerifier(trustedCertificates, new RawPublicKeyIdentity[0], null);
}
} catch (Exception e) {
log.warn("ailed to initialize the LwM2M certificate verifier", e);
}
}
use of org.eclipse.californium.scandium.dtls.x509.StaticNewAdvancedCertificateVerifier in project thingsboard by thingsboard.
the class TbLwM2MDtlsCertificateVerifier method init.
@PostConstruct
public void init() {
try {
/* by default trust all */
if (config.getTrustSslCredentials() != null) {
X509Certificate[] trustedCertificates = config.getTrustSslCredentials().getTrustedCertificates();
staticCertificateVerifier = new StaticNewAdvancedCertificateVerifier(trustedCertificates, new RawPublicKeyIdentity[0], null);
}
} catch (Exception e) {
log.warn("Failed to initialize the LwM2M certificate verifier", e);
}
}
Aggregations