-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display pem key file in bigint hex format
- Loading branch information
0 parents
commit 29eeb2e
Showing
4 changed files
with
421 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,235 @@ | ||
|
||
# don't forget share .gitignore located in project root path | ||
!.gitignore | ||
|
||
|
||
######## programming lang related ignore | ||
####################################################################################################### | ||
####################################################################################################### | ||
####################################################################################################### | ||
|
||
## .gitignore for java | ||
## https://raw.githubusercontent.com/github/gitignore/master/Java.gitignore | ||
|
||
*.class | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
!/lib/*.jar | ||
*.war | ||
*.ear | ||
*.zip | ||
*.zip.sha1 | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
|
||
## .gitignore for java web | ||
# older plugin install locations | ||
/plugins | ||
/web-app/plugins | ||
/web-app/WEB-INF/classes | ||
**/classes/ | ||
|
||
**/classes/ | ||
**/WEB-INF/classes/ | ||
**/WEB-INF/tmp/ | ||
**/WEB-INF/work/ | ||
*__jsp.java | ||
*__jsp.java.smap | ||
|
||
######## state info on running: logs or mem-db | ||
####################################################################################################### | ||
####################################################################################################### | ||
####################################################################################################### | ||
|
||
# default HSQL database files for production mode | ||
/prodDb.* | ||
|
||
# general HSQL database files | ||
*Db.properties | ||
*Db.script | ||
|
||
# logs | ||
/stacktrace.log | ||
/test/reports | ||
/logs | ||
/log | ||
*.log | ||
*.log.* | ||
|
||
|
||
######## maven & ant related ignore | ||
####################################################################################################### | ||
####################################################################################################### | ||
####################################################################################################### | ||
|
||
# .gitignore for maven | ||
target/ | ||
*.releaseBackup | ||
|
||
# .gitignore for ant | ||
build/ | ||
out/ | ||
|
||
# older plugin install locations | ||
/plugins | ||
/web-app/plugins | ||
/web-app/WEB-INF/classes | ||
|
||
######## IDE related ignore | ||
####################################################################################################### | ||
####################################################################################################### | ||
|
||
## .gitignore for eclipse | ||
#################################### | ||
.metadata | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.settings/ | ||
.loadpath | ||
.recommenders | ||
|
||
# Eclipse Core | ||
.project | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# PyDev specific (Python IDE for Eclipse) | ||
*.pydevproject | ||
|
||
# CDT-specific (C/C++ Development Tooling) | ||
.cproject | ||
|
||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
|
||
# Java annotation processor (APT) | ||
.factorypath | ||
|
||
# PDT-specific (PHP Development Tools) | ||
.buildpath | ||
|
||
# sbteclipse plugin | ||
.target | ||
|
||
# Tern plugin | ||
.tern-project | ||
|
||
# TeXlipse plugin | ||
.texlipse | ||
|
||
# STS (Spring Tool Suite) | ||
.springBeans | ||
|
||
# Code Recommenders | ||
.recommenders/ | ||
##################################### | ||
|
||
|
||
## .gitignore for intellij | ||
##################################### | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
##################################### | ||
|
||
|
||
|
||
######## OS related ignore | ||
####################################################################################################### | ||
####################################################################################################### | ||
|
||
## .gitignore for windows | ||
## https://raw.githubusercontent.com/github/gitignore/master/Global/Windows.gitignore | ||
#################################### | ||
# Windows thumbnail cache files | ||
Thumbs.dtignoreb | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
################################## | ||
|
||
|
||
## .gitignore for mac os x | ||
## https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore | ||
################################### | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
######################################### | ||
|
||
|
||
## .gitignore for linux | ||
## https://raw.githubusercontent.com/github/gitignore/master/Global/Linux.gitignore | ||
######################################### | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
######################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# display pem key file in bigint hex format | ||
|
||
## how to run | ||
|
||
``java -jar pemkey-0.1.0-all.jar $path-to-file.pem`` | ||
|
||
for help, run ``java -jar pemkey-0.1.0-all.jar`` | ||
|
||
for example ``java -jar pemkey-0.1.0-all.jar /tmp/passport-pri-1024-test.pem`` | ||
|
||
**NOTE** | ||
|
||
a precompiled package is available at [v0.1.0 Releases](https://github.com/downgoon/pemkey/releases/tag/v0.1.0), you can go to this page and download it directly. | ||
|
||
## how to build | ||
|
||
git clone https://github.com/downgoon/pemkey.git | ||
cd pemkey | ||
mvn clean package | ||
java -jar target/pemkey-0.1.0-all.jar $path-to-file.pem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>io.downgoon.tools</groupId> | ||
<artifactId>pemkey</artifactId> | ||
<version>0.1.0</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>pemkey</name> | ||
<url>http://maven.apache.org</url> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>com.github.downgoon</groupId> | ||
<artifactId>jresty-security</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.4</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
<encoding>${project.build.sourceEncoding}</encoding> | ||
<showDeprecation>true</showDeprecation> | ||
<showWarnings>true</showWarnings> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- Download sources and javadocs for eclipse --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-eclipse-plugin</artifactId> | ||
<version>2.9</version> | ||
<configuration> | ||
<downloadSources>true</downloadSources> | ||
<downloadJavadocs>true</downloadJavadocs> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>2.0</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<transformers> | ||
<transformer | ||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | ||
<mainClass>io.downgoon.tools.Pem2Bigint</mainClass> | ||
</transformer> | ||
</transformers> | ||
<createDependencyReducedPom>false</createDependencyReducedPom> | ||
<shadedArtifactAttached>true</shadedArtifactAttached> | ||
<shadedClassifierName>all</shadedClassifierName> | ||
<artifactSet> | ||
<includes> | ||
<include>*:*</include> | ||
</includes> | ||
</artifactSet> | ||
<minimizeJar>false</minimizeJar> | ||
<filters> | ||
<filter> | ||
<artifact>*:*</artifact> | ||
<excludes> | ||
<exclude>META-INF/*.SF</exclude> | ||
<exclude>META-INF/*.DSA</exclude> | ||
<exclude>META-INF/*.RSA</exclude> | ||
</excludes> | ||
</filter> | ||
</filters> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.