Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genrsa: Unrecognized flag truststorepass #32

Open
ngoploti opened this issue Dec 19, 2022 · 7 comments
Open

genrsa: Unrecognized flag truststorepass #32

ngoploti opened this issue Dec 19, 2022 · 7 comments

Comments

@ngoploti
Copy link

ngoploti commented Dec 19, 2022

I am not able to generate certificate with this command.

./run.sh -keystorepass “password" -truststorepass “password"

the folder keystores
├── alfresco

has no

├── keystore
│ ├── ssl.keystore
│ ├── ssl.truststor

When I run it, I have the message "genrsa: Unrecognized flag truststorepass."
I want to generate ssl certificate for alfresco community

@aborroy
Copy link
Contributor

aborroy commented Dec 19, 2022

What version of openssl are you using?

@ngoploti
Copy link
Author

What version of openssl are you using?

OpenSSL 1.1.1f 31 Mar 2020

@aborroy
Copy link
Contributor

aborroy commented Dec 19, 2022

That should be working. What about java version?

@ngoploti
Copy link
Author

ngoploti commented Dec 19, 2022

That should be working. What about java version?

openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu120.04, mixed mode, sharing)

@aborroy
Copy link
Contributor

aborroy commented Dec 19, 2022

Try upgrading to Java 11

@ngoploti
Copy link
Author

Try upgrading to Java 11
my previous java version was in the computer not the server. Here is my java version
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu120.04, mixed mode, sharing)

@UristMcNudist
Copy link

UristMcNudist commented Feb 23, 2023

I'm having the exact same issue, same openssl/openjdk versions. I tried java 11 too, without success.

Edit: Ok, I found the issue
I was following the community docs installation instructions and copied the run.sh command...
./run.sh -keystorepass “password" -truststorepass “password"
...which uses 2 different types of quote around password. After changing it to...
./run.sh -keystorepass "password" -truststorepass "password"
...it worked.

It's very hard to see the difference, I only noticed after running the script with set -x option.

PS: Don't forget to set SOLR_JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" in alfresco-search-services/solr.in.sh, looks like solr doesn't work with java 17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants