cancel
Showing results for 
Search instead for 
Did you mean: 

keytool help windows server 2012

digiwill
Champ in-the-making
Champ in-the-making
Hi guys,

I'm breaking my head over this, which is probably a small thing.

i'm using the keytool -certreq to generate a certificate with csr code. getting the error that keystore file does not exist.
what do i put after -keystore

my install dir is d:\alfresco
and keystore is located in d:\alfresco\alf_data\keystore

when i put this dir behind -keystore it doesn't work.

please help!
thanks.

p.s. using alfresco community edition 5
2 REPLIES 2

borisstankov
Champ in-the-making
Champ in-the-making
Hello there,

I'm not sure what do you meant with "what to put after -keystore", but I assume that you need an examploe of a whole command so you can generate your keys.
Don't you have readme.txt file in the same directory where the keytool is located?

Please refer you those links:
https://wiki.alfresco.com/wiki/Alfresco_And_SOLR
https://wiki.alfresco.com/wiki/Data_Encryption

There is subtitle called: "Manually Generating New SSL Keys Signed by a Certificate Authority" in the 1st one where you can find an example.

On the other hand if you do not meant that then I assume that you enter a whole command in your cmd of your Win Server, but it still can locate the keytool file and that's why you have this error.
1st thing that I can think of - is the file there? If yes, then you need to use the whole path to the file "D:\alfresco\alf_data\keystore\keytool"
If that doesn't help, then find online how to add a PATH variable to your windows with the whole path to the keytool and then try to use the file.


If your problem is non of those cases, please put the exact thing that you are doing:
1.  command
2.  error message
3.  expected behavior


Regards!

Hi Boris,

Thanks for your reply. Sry my mssg was a bit vague I couldn't think clear anymore Smiley Happy
I followed your URL now and tried this:

D:\Alfresco\java\bin>keytool -genkey -alias ssl.repo -keyalg RSA -keysize 2048 -
keystore ssl.keystore -storetype JCEKS -storepass kT9X6oe68t
keytool error: java.io.IOException: Keystore was tampered with, or password was
incorrect

It doesn't accept the password although its in the properties file defined.

So basicly I bought an SSL cert. and first I need to generate the CSR code for that cert and then import the cert.
Maybe I need to start fresh, I read something about keystores.zip with default files but I can't find that.

Thanks in advance