Results 1 to 4 of 4
Thread: How to create a Keystore file
- 02-15-2011, 05:04 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 8
- Rep Power
- 0
How to create a Keystore file
Hi All,
I need help in creating a keystore file.
Application server used is Tomcat.
Here I am using database connection strings fopr connecting to a database.So i need to make that connection strings secure. For that i need a keystore file, and mention the databse connection strings in that keystore file. So that when i try to connect to a databse the code will access the keystore file and decrypt (bcoz conncetion strings will be encrypted) the connection strings and login to the database.
I finished my code how to read the keystore file from a specific location..But the thing is i need help in creating keystore file and how to mention the database connection strings in that keystore file.
Thanks in Advance.
- 02-15-2011, 05:14 PM #2
Well Do you want decrypt key to help java app?
I think it don't good approach, you can setting permission access in self database and limit access from remote client.Skype: petrarsentev
http://TrackStudio.com
- 02-16-2011, 02:48 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 8
- Rep Power
- 0
Actually, the thing is I am creating a keystore through java code in a certain location(Say on Windows) and keystore file has three pecies of information DBUsername, Password and connection string.That will be encrypted through java code..Keystore filepath, keystore password and DBUsername, password and conn string will be mentioned as aliases in the keystore.property file as shown...
#************************************
# KEYSTORE INFO
#************************************
ODS_KEYSTORE_FILE_PATH=C:\\Documents and Settings\\User\\ods.keystore
# the following may contain any value for security purposes
# they just need to be unique
ODS_KEYSTORE_PASSWORD=ods-keystore-password
ODS_KEYSTORE_USER_ALIAS=ods-keystore-user-alias
ODS_KEYSTORE_PASS_ALIAS=ods-keystore-pass-alias
ODS_KEYSTORE_CONN_ALIAS=ods-keystore-conn-alias
===========================================
The DBUsername, Password and Conn String will be in encrypted mode in the keystore file.So when i try to login to the database it must access the keystore file using the keystore password and get the data required, dedcrypt that and login to the database using that information.
Here these 3 pecies must be secured DBUsername, Password and Conn String. So that's what my TeamLd wants to make it secure.He sent me code for creating keystore, retriving the keystore.But i need to include everything in my present DB conn code.
So the thing is it is a good approach or not..and also will it work if i include the code sent by my TL in my present code.
- 02-16-2011, 03:09 PM #4
Member
- Join Date
- Feb 2011
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
convert keystore.ks into pem
By mauro in forum Advanced JavaReplies: 1Last Post: 12-09-2011, 01:02 PM -
How to create a Keystore File
By Tulsa in forum New To JavaReplies: 0Last Post: 02-13-2011, 11:04 PM -
get web browser Certs : keystore & linux
By Nicolas741000 in forum Advanced JavaReplies: 1Last Post: 11-14-2010, 08:39 PM -
Generating a Keystore
By techbossmb in forum Java AppletsReplies: 2Last Post: 09-30-2009, 07:31 PM -
GNU-compatible keystore
By OrangeDog in forum Advanced JavaReplies: 0Last Post: 04-30-2009, 02:50 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks