code: private void addPkcs12ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addPkcs12ButtonActionPerformed
  		if (fileTextField.getText().equals("")) {
  			return;
  		}
  		String kspass = new String(pkcs12PasswordField.getPassword());
  		if (kspass.equals("")){
  			//pcks#12 file with empty password is not supported by java
  			showCertError("options.cert.error.pkcs12nopass", Constant.messages.getString("options.cert.error.usepassfile"));
  			return;
  		}
  
  		int ksIndex;
  		try {
  			ksIndex = contextManager.loadPKCS12Certificate(fileTextField.getText(), kspass);
  			keyStoreListModel.insertElementAt(contextManager.getKeyStoreDescription(ksIndex), ksIndex);
  		} catch (Exception e) {
  			showKeyStoreCertError(Constant.messages.getString("options.cert.error.password"));
  			logger.error(e.getMessage(), e);
  			return;
  		}
  
  
  		certificatejTabbedPane.setSelectedIndex(0);
  		activateFirstOnlyAliasOfKeyStore(ksIndex);
  
  		fileTextField.setText("");
  		pkcs12PasswordField.setText("");
  
  	}
docs: GEN-LAST:event_driverButtonActionPerformed