Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keystoreexplorerupdate #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 165 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jcoderz.keytoolz</groupId>
<artifactId>keystoreexplorer</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>keystoreexplorer</name>
<url>http://maven.apache.org</url>
<!--<properties>
<artifactId>maven-compiler-plugin</artifactId>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<configuration>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<compilerArgs>
<arg>add-exports</arg><arg>java.base/sun.security.util=ALL-UNNAMED</arg>
<arg>add-exports</arg><arg>java.base/sun.security.x509=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</properties>-->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.1</version>
</dependency>
<dependency>
<groupId>org.jcoderz.fawkez</groupId>
<artifactId>fawkez-commons</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>140</version>
</dependency>
<dependency>
<groupId>org.swinglabs</groupId>
<artifactId>swing-layout</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>net.imagej</groupId>
<artifactId>ij</artifactId>
<version>1.53j</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/java</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<compilerArgs>
<arg>--add-exports=java.base/sun.security.util=ALL-UNNAMED</arg>
<arg>--add-exports=java.base/sun.security.x509=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.jcoderz.keytoolz.keystoreexplorer.KeyStoreExplorer</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>

<manifest>

<addClasspath>true</addClasspath>
<mainClass>org.jcoderz.keytoolz.keystoreexplorer.KeyStoreExplorer</mainClass>

</manifest>

</archive>
<!--<includes><include>images/*.*</include></includes>-->
</configuration>
</plugin>
<!--<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-resource-one</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/images</outputDirectory>
<resources>
<resource>
<directory>images</directory>
<includes>
<include>*.*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>copy-file</id>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<target>
<copy todir="${build.dir}/jar/images">
<fileset dir="${base.dir}/src/resources/images">
<include name="*.gif" />
</fileset>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>-->
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@
import sun.security.util.ObjectIdentifier;
import sun.security.x509.OIDMap;


/**
* The main panel of the certificate explorer.
*
* @author cloroff
* @created 14. M�rz 2007, 16:32
* @created 14. M�rz 2007, 16:32
*/
public class CertificateExplorer
extends JPanel
Expand Down Expand Up @@ -928,7 +929,7 @@ private void addExtensions(boolean bCritical, Vector<Vector<Object>> data)
ObjectIdentifier oid = null;
try
{
oid = new ObjectIdentifier(sOid);
oid = ObjectIdentifier.of(sOid);
}
catch (IOException e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.KeyStore;
import java.security.PKCS12Attribute;

public class KeyStoreHolder
{
private static final String STORE_TYPE = "JKS";
private static final String STORE_TYPE = "PKCS12"; //"P12" "JKS"
private File ksFile;
private KeyStore keyStore;
private char[] storePass;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* CertificateFileFilter.java
*
* Created on 14. M�rz 2007, 06:32
* Created on 14. M�rz 2007, 06:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
Expand All @@ -10,6 +10,7 @@
package org.jcoderz.keytoolz.keystoreexplorer;

import java.io.File;
import java.security.PKCS12Attribute;
import java.util.Arrays;
import java.util.List;

Expand All @@ -20,7 +21,7 @@ public class StrictCertificateFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter
{
private static final String[] CERTIFICATE_FILE_EXTENSIONS = {"cer", "crt", "der"};
private static final String[] CERTIFICATE_FILE_EXTENSIONS = {"cer", "crt", "der", "p12"};
private static final List<String> EXTENSION_LIST = Arrays.asList(CERTIFICATE_FILE_EXTENSIONS);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public boolean accept(File file)
{
result = false;
}
return result;
return true;//result;
}


Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED -jar target\keystoreexplorer-1.0-SNAPSHOT-jar-with-dependencies.jar
Binary file added target/classes/images/Thumbs.db
Binary file not shown.
Binary file added target/classes/images/back.gif
Binary file added target/classes/images/ball-green.gif
Binary file added target/classes/images/ball-red.gif
Binary file added target/classes/images/cert.gif
Binary file added target/classes/images/cert1.gif
Binary file added target/classes/images/cert2.gif
Binary file added target/classes/images/closedfolder.gif
Binary file added target/classes/images/deletecert.gif
Binary file added target/classes/images/deletekey.gif
Binary file added target/classes/images/deletekeystore.gif
Binary file added target/classes/images/deleterow.gif
Binary file added target/classes/images/empty.gif
Binary file added target/classes/images/exportcert.gif
Binary file added target/classes/images/finish.gif
Binary file added target/classes/images/fwd.gif
Binary file added target/classes/images/importcert.gif
Binary file added target/classes/images/information.gif
Binary file added target/classes/images/invalidcert.gif
Binary file added target/classes/images/key.gif
Binary file added target/classes/images/keyandcert.gif
Binary file added target/classes/images/keyandinvalidcert.gif
Binary file added target/classes/images/keyclone.gif
Binary file added target/classes/images/keystore.gif
Binary file added target/classes/images/left.gif
Binary file added target/classes/images/locks.gif
Binary file added target/classes/images/newcert.gif
Binary file added target/classes/images/newkey.gif
Binary file added target/classes/images/newkeystore.gif
Binary file added target/classes/images/newrow.gif
Binary file added target/classes/images/ok.gif
Binary file added target/classes/images/open.gif
Binary file added target/classes/images/openfolder.gif
Binary file added target/classes/images/paste.gif
Binary file added target/classes/images/pingreen.gif
Binary file added target/classes/images/pinred.gif
Binary file added target/classes/images/reload.gif
Binary file added target/classes/images/right.gif
Binary file added target/classes/images/stop.gif
Binary file added target/classes/images/trustedcert.gif
Binary file added target/classes/images/warning.gif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added target/keystoreexplorer-1.0-SNAPSHOT.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Mon Apr 25 13:34:09 CEST 2022
groupId=org.jcoderz.keytoolz
artifactId=keystoreexplorer
version=1.0-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorerTableModel.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$3.class
org\jcoderz\keytoolz\keystoreexplorer\StrictCsrFileFilter.class
org\jcoderz\keytoolz\keystoreexplorer\util\PropertiesUtil.class
org\jcoderz\keytoolz\keystoreexplorer\ChangePasswordDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\NewKeyDialog.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$6.class
org\jcoderz\keytoolz\keystoreexplorer\ChangePasswordDialog.class
org\jcoderz\keytoolz\keystoreexplorer\PasswordDialog$3.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreChooserDialog.class
org\jcoderz\keytoolz\keystoreexplorer\CsrChooserDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\DirectoryChooserDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreEntryHolder.class
org\jcoderz\keytoolz\keystoreexplorer\NewKeyDialog$3.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer$1.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$8.class
org\jcoderz\keytoolz\keystoreexplorer\DirectoryChooserDialog.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$1.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerPopupMenus.class
org\jcoderz\keytoolz\keystoreexplorer\util\CertUtil.class
org\jcoderz\keytoolz\keystoreexplorer\ErrorDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\NewKeyDialog$2.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreFileFilter.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$2.class
org\jcoderz\keytoolz\keystoreexplorer\ErrorDialog$2.class
org\jcoderz\keytoolz\keystoreexplorer\ErrorDialog.class
org\jcoderz\keytoolz\keystoreexplorer\CsrChooserDialog.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer$2.class
org\jcoderz\keytoolz\keystoreexplorer\NewKeyDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\PasswordDialog$4.class
org\jcoderz\keytoolz\keystoreexplorer\PasswordDialog.class
org\jcoderz\keytoolz\keystoreexplorer\StrictKeyStoreFileFilter.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer$6.class
org\jcoderz\keytoolz\keystoreexplorer\DirectoryChooserDialog$2.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateChooserDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\CsrChooserDialog$1$1.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreChooserDialog$1.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$4.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateHolder.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateFileFilter.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer$3.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$7.class
org\jcoderz\keytoolz\keystoreexplorer\ChangePasswordDialog$2.class
org\jcoderz\keytoolz\keystoreexplorer\util\SemaphoreUtil.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreExplorer.class
org\jcoderz\keytoolz\keystoreexplorer\PasswordDialog$2.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreHolder.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateChooserDialog.class
org\jcoderz\keytoolz\keystoreexplorer\StrictCertificateFileFilter.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorerTableCellRenderer.class
org\jcoderz\keytoolz\keystoreexplorer\ChangePasswordDialog$3.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer$4.class
org\jcoderz\keytoolz\keystoreexplorer\KeyStoreTreeCellRenderer.class
org\jcoderz\keytoolz\keystoreexplorer\CsrFileFilter.class
org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame$5.class
org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer$5.class
org\jcoderz\keytoolz\keystoreexplorer\PasswordDialog$1.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CertificateChooserDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\ExplorerFrame.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\NewKeyDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\KeyStoreChooserDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\KeyStoreHolder.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\util\CertUtil.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\DirectoryChooserDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\ChangePasswordDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\KeyStoreFileFilter.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\ExplorerPopupMenus.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\StrictCertificateFileFilter.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\util\PropertiesUtil.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorerTableCellRenderer.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\ErrorDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\PasswordDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CertificateFileFilter.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\util\SemaphoreUtil.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\StrictCsrFileFilter.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\StrictKeyStoreFileFilter.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CsrChooserDialog.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorerTableModel.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\KeyStoreTreeCellRenderer.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CertificateHolder.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\KeyStoreEntryHolder.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CsrFileFilter.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\CertificateExplorer.java
C:\Users\A200018349\keystoreexplorer\src\java\org\jcoderz\keytoolz\keystoreexplorer\KeyStoreExplorer.java