Security Utils

Java security utils

License

License

Categories

Categories

Security
GroupId

GroupId

com.github.yadickson
ArtifactId

ArtifactId

security-utils
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Security Utils
Java security utils
Project URL

Project URL

https://github.com/yadickson/security-utils
Project Organization

Project Organization

Yadickson Soto
Source Code Management

Source Code Management

https://github.com/yadickson/security-utils

Download security-utils

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.yadickson/security-utils/ -->
<dependency>
    <groupId>com.github.yadickson</groupId>
    <artifactId>security-utils</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.yadickson/security-utils/
implementation 'com.github.yadickson:security-utils:1.0.0'
// https://jarcasting.com/artifacts/com.github.yadickson/security-utils/
implementation ("com.github.yadickson:security-utils:1.0.0")
'com.github.yadickson:security-utils:jar:1.0.0'
<dependency org="com.github.yadickson" name="security-utils" rev="1.0.0">
  <artifact name="security-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.yadickson', module='security-utils', version='1.0.0')
)
libraryDependencies += "com.github.yadickson" % "security-utils" % "1.0.0"
[com.github.yadickson/security-utils "1.0.0"]

Dependencies

provided (6)

Group / Artifact Type Version
org.springframework : spring-context jar 4.2.1.RELEASE
org.springframework : spring-core jar 4.2.1.RELEASE
org.springframework : spring-beans jar 4.2.1.RELEASE
commons-lang : commons-lang jar 2.6
io.jsonwebtoken : jjwt jar 0.9.1
javax.xml.bind : jaxb-api jar 2.3.1

test (4)

Group / Artifact Type Version
commons-codec : commons-codec jar 1.11
junit : junit jar 4.12
org.mockito : mockito-core jar 1.10.19
org.apache.maven.shared : maven-verifier jar 1.2

Project Modules

There are no modules declared in this project.

Java Security Library Utils

TravisCI Status Codecov Status Central OSSRH Central Maven

You can create pub.pem, key.pem and cert.pem with maven autocert plugin or with openssl.

Openssl

$ nano openssl.conf

[req]
distinguished_name = req_distinguished_name
# req_extensions = v3_req
prompt = no
[req_distinguished_name]
C = Country
ST = Stade
L = Locale
O = Organization
OU = O
CN = www.domain.com

RSA

$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -sha256 -config openssl.conf -passout pass:Abcd123.,# -nodes

EC

$ openssl ecparam -name secp521r1 -genkey -noout -out key1.pem
$ openssl req -new -x509 -sha256 -key key1.pem -out cert.pem -config openssl.conf
$ openssl pkcs8 -topk8 -nocrypt -in key1.pem -out key.pem && rm key1.pem

License

GPL-3.0 © Yadickson Soto

Versions

Version
1.0.0