Skip to content

EasyAppSecurity/jks-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SSL server credentials to Java .keystore import

SSL .key and .crt to java keystore groovy script

Using

OpenSSL need to be installed

Just try: groovy import keyfile.key certfile.crt

Change in source:
Target keystore name
KEYSTORE_NAME = 'keystore.ImportKey'
Target keystore password
KEYPASS = 'importkey'
Target keystore alias
ALIAS = 'importkey'

Target certificate name
CERT_NAME = 'public.cer'

Get public keytore

For create public java keystore (without private key):
keytool -importcert -file public.cer -keystore public -alias importkey -storepass importkey

About

SSL private key to java keystore converter script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages