This is w.r.t establishing TLS connection using snmp4j .
As part of TLS client connection application we are supposed to pass -Djavax.net.ssl.trustStore=<trustStoreFilePath> -Djavax.net.ssl.trustStorePassword=<trustStorePassword> -Djavax.net.ssl.keyStore=<keyStoreFilePath> -Djavax.net.ssl.keyStorePassword=<keyStorePassword>
We see that JKS is the default supported format for keyStore/trustStore . Does snmp4j supports BouncyCastle keystore /trustsore ?
Hello ,
I tried using BSK (Bouncy castel keystore ) by running snmp4j agent and connecting using SNMP4j API and was able to successfully connect only after updating the attribute passed for getintance as “BKS” which was earlier hardcoded as JKS in the class TLSTMUtil under method createSSLContext
KeyStore ks = KeyStore.getInstance(“BKS”);
I just found out, that SNMP4J 3.5.1 already provides configurability for the key store type using security property: keystore.type
The default values of security properties are read from an implementation-specific location, which is typically the properties file conf/security/java.security in the Java installation directory.