Skip to content

Operator gets "400: Invalid SNI" when accessing Ords #126

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

Closed
rbaumgar opened this issue Aug 21, 2024 · 4 comments
Closed

Operator gets "400: Invalid SNI" when accessing Ords #126

rbaumgar opened this issue Aug 21, 2024 · 4 comments

Comments

@rbaumgar
Copy link

documentation who to create certificates is incomplete
https://github.com/oracle/oracle-database-operator/blob/main/docs/multitenant/README.md#secrets-for-certificates

operator uses the URL following URL to access ORDS: -ords., e.g. cdb-dev-ords.oracle

that results extfile.txt should be created like the following example. www.example.com is complete useless.

echo "subjectAltName=DNS:cdb-dev-ords,DNS:cdb-dev-ords.oracle" > extfile.txt

@mmalvezz
Copy link
Member

Makefile with correct example has been changed few months ago please let us know if your problem still exists

197         $(OPENSSL) req -newkey rsa:2048 -nodes -keyout $(SKEY) -subj "/C=US/ST=California/L=SanFrancisco/O=$(COMPANY) /CN=$(RESTPREFIX)-$(REST_SERVER).$(C    DB_NAMESPACE) /CN=$(LOCALHOST)" -out server.csr
198         $(ECHO) "subjectAltName=DNS:$(RESTPREFIX)-$(REST_SERVER).$(CDB_NAMESPACE),DNS:www.example.com" > extfile.txt
199         $(OPENSSL) x509 -req -extfile extfile.txt -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out $(SCRT)

@rbaumgar
Copy link
Author

why is www.example.com defined? This is definitely not required here. Or please explain this, I thought this should be used in an enterprise environment.

@mmalvezz
Copy link
Member

Thank you we are going to remove the example as well please let us know if you are still facing problem 400 SNI

@rbaumgar
Copy link
Author

rbaumgar commented Oct 1, 2024

I faceced the 400 SNI error again, when I exposed the ORDS service externally, than I had to create an entry with the external name.

e.g.
echo "subjectAltName=DNS:-ords,DNS:-ords.,DNS:cdb-dev-ords-." > extfile.txt

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

2 participants