Buggy code:
public abstract class SSLManager { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String SSL_TRUST_STORE = "javax.net.ssl.trustStore" ; private static final String KEY_STORE_PASSWORD = "javax.net.ssl.keyStorePassword" ; public static final String JAVAX_NET_SSL_KEY_STORE = "javax.net.ssl.keyStore" ; private static final String JAVAX_NET_SSL_KEY_STORE_TYPE = "javax.net.ssl.keyStoreType" ; private static final String PKCS12 = "pkcs12" ; private static SSLManager manager ; private static final boolean isSSLSupported = true ; private volatile JmeterKeyStore keyStore ; private KeyStore trustStore = null ; private volatile boolean truststore_loaded = false ; protected String defaultpw = System . getProperty ( SSLManager . KEY_STORE_PASSWORD ) ; private int keystoreAliasStartIndex ; private int keystoreAliasEndIndex ; public static synchronized void reset ( ) { } public abstract void setContext ( HttpURLConnection conn ) { } protected void setProvider ( Provider provider ) { } protected JmeterKeyStore getKeyStore ( ) { if ( null == ( this . keyStore ) ) { String fileName = System . getProperty ( SSLManager . JAVAX_NET_SSL_KEY_STORE , "" ) ; <START_BUG> String fileType = System . getProperty ( SSLManager . JAVAX_NET_SSL_KEY_STORE_TYPE , ( fileName . toLowerCase ( Locale . UK ) . endsWith ( ".p12" ) ? SSLManager . PKCS12 : "JKS" ) ) ; <END_BUG> SSLManager . log . info ( ( ( ( "JmeterKeyStore<seq2seq4repair_space>Location:<seq2seq4repair_space>" + fileName ) + "<seq2seq4repair_space>type<seq2seq4repair_space>" ) + fileType ) ) ; try { this . keyStore = JmeterKeyStore . getInstance ( fileType , keystoreAliasStartIndex , keystoreAliasEndIndex ) ; SSLManager . log . info ( "KeyStore<seq2seq4repair_space>created<seq2seq4repair_space>OK" ) ; } catch ( Exception e ) { this . keyStore = null ; throw new RuntimeException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>create<seq2seq4repair_space>keystore:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) , e ) ; } InputStream fileInputStream = null ; try { File initStore = new File ( fileName ) ; if ( ( ( fileName . length ( ) ) > 0 ) && ( initStore . exists ( ) ) ) { fileInputStream = new BufferedInputStream ( new FileInputStream ( initStore ) ) ; this . keyStore . load ( fileInputStream , getPassword ( ) ) ; if ( SSLManager . log . isInfoEnabled ( ) ) { SSLManager . log . info ( ( ( "Total<seq2seq4repair_space>of<seq2seq4repair_space>" + ( keyStore . getAliasCount ( ) ) ) + "<seq2seq4repair_space>aliases<seq2seq4repair_space>loaded<seq2seq4repair_space>OK<seq2seq4repair_space>from<seq2seq4repair_space>keystore" ) ) ; } } else { SSLManager . log . warn ( "Keystore<seq2seq4repair_space>file<seq2seq4repair_space>not<seq2seq4repair_space>found,<seq2seq4repair_space>loading<seq2seq4repair_space>empty<seq2seq4repair_space>keystore" ) ; this . defaultpw = "" ; this . keyStore . load ( null , "" ) ; } } catch ( Exception e ) { SSLManager . log . error ( ( "Problem<seq2seq4repair_space>loading<seq2seq4repair_space>keystore:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) , e ) ; } finally { JOrphanUtils . closeQuietly ( fileInputStream ) ; } SSLManager . log . debug ( ( "JmeterKeyStore<seq2seq4repair_space>type:<seq2seq4repair_space>" + ( this . keyStore . getClass ( ) . toString ( ) ) ) ) ; } return this . keyStore ; } private String getPassword ( ) { } protected KeyStore getTrustStore ( ) { } protected SSLManager ( ) { } public static final synchronized SSLManager getInstance ( ) { } public static final boolean isSSLSupported ( ) { } public void configureKeystore ( boolean preload , int startIndex , int endIndex ) { } public void destroyKeystore ( ) { } }

Fix:
String fileType = System . getProperty ( SSLManager . JAVAX_NET_SSL_KEY_STORE_TYPE , ( fileName . toLowerCase ( Locale . ENGLISH ) . endsWith ( ".p12" ) ? SSLManager . PKCS12 : "JKS" ) ) ;