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

if [alt_names] >= 10 then all DNS.1x become DNS.1 #31

Open
papinifrancesco opened this issue Nov 25, 2022 · 1 comment
Open

if [alt_names] >= 10 then all DNS.1x become DNS.1 #31

papinifrancesco opened this issue Nov 25, 2022 · 1 comment

Comments

@papinifrancesco
Copy link

Hi Angel,
I was trying to define more than 9 SANs but when I run ./run.sh openssl.conf gets modified in a weird way ... example:

openssl.conf (edited by me)
[...]
[alt_names]
DNS.1 = localhost
DNS.2 = 127.0.0.1
DNS.3 = alfresco-local
DNS.4 = alfresco-remote
DNS.5 = solr-local
DNS.6 = solr-remote
DNS.7 = solr7
DNS.8 = solr8
DNS.9 = solr9
DNS.10 = solr10
DNS.11 = solr11

then I run : ./run.sh

I open openssl.conf again:

[...]
[alt_names]
DNS.1 = localhost
DNS.2 = 127.0.0.1
DNS.3 = alfresco-local
DNS.4 = alfresco-remote
DNS.5 = solr-local
DNS.6 = solr-remote
DNS.7 = solr7
DNS.8 = solr8
DNS.9 = solr9
DNS.1 = localhost
DNS.1 = localhost

could you please have a look at it when possible?

@papinifrancesco
Copy link
Author

Well, I guess I found it in run.sh

Server Certificate for SOLR (issued by just generated CA)

if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s/DNS.1./DNS.1 = $SOLR_SERVER_NAME/" openssl.cnf;
else
sed -i "s/DNS.1.
/DNS.1 = $SOLR_SERVER_NAME/" openssl.cnf;
fi

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

1 participant