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

[Issue]: SSL_ERROR_BAD_CERT_DOMAIN on nexisuni #460

Open
sleepy-nols opened this issue May 10, 2024 · 3 comments
Open

[Issue]: SSL_ERROR_BAD_CERT_DOMAIN on nexisuni #460

sleepy-nols opened this issue May 10, 2024 · 3 comments

Comments

@sleepy-nols
Copy link
Contributor

Expected behavior:
When fetching article, bibbot automatically logs into nexisuni.

Actual behavior:
Before login can happen, SSL_ERROR_BAD_CERT_DOMAIN error blocks loading of page, as HTTPS-Only Mode is enabled.

When trying to fetch an article from https://www.nexisuni.com.bonn.idm.oclc.org/ the following error occurs.
I have enabled HTTPS-Only Mode in Firefox. I think this might be a issue on nexisuni's side, still leaving this here to keep track of the bug.

SSL_ERROR_BAD_CERT_DOMAIN
https://www.nexisuni.com.bonn.idm.oclc.org/

Unable to communicate securely with peer: requested domain name does not match the server’s certificate.

HTTP Strict Transport Security: false
HTTP Public Key Pinning: false

Certificate chain:

-----BEGIN CERTIFICATE-----
MIIGVjCCBL6gAwIBAgIQP8vXmsEwSCD+hiv0CU1igjANBgkqhkiG9w0BAQsFADBK
MQswCQYDVQQGEwJVUzETMBEGA1UECgwKT0NMQywgSW5jLjEmMCQGA1UEAwwdT0NM
QyBUTFMgSXNzdWluZyBSU0EgU3ViQ0EgUjEwHhcNMjQwMjE2MTY1MzEwWhcNMjUw
MjE1MTY1MzEwWjAeMRwwGgYDVQQDDBMqLmJvbm4uaWRtLm9jbGMub3JnMIIBIjAN
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu68vdlLSJSH9IXUEOkrd/0IpH8x1
s8r48O84419aZV7jgURA1iJgFKm6JrFiImk4vb+bUZKt58RYl2GCOk6z9a6Gg2le
TAkPRzsRQ27Ac78Yj2d3lzTozsOGFbCLp1Y/Un4rJnIpx/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ATE-----

@sleepy-nols
Copy link
Contributor Author

sleepy-nols commented May 10, 2024

After playing around with this ssl checker a bit, I found out that the domain www.nexisuni.com.bonn.idm.oclc.org we are linking to, is actually redirecting via a 302 temporary redirect to www-nexisuni-com.bonn.idm.oclc.org. Which does not trigger the ssl error.

HTTP status code 	302
HTTP forwarding 	https://www-nexisuni-com.bonn.idm.oclc.org

As the the nexisuni certificate just covers *.bonn.idm.oclc.org and bonn.idm.oclc.org, further nested domains like the above www.nexisuni. com.bonn.idm.oclc.org are not covered by them. As the dashes in www-nexisuni-com.bonn.idm.oclc.org do not create more subdomains, unlike the dot notation, the domain with dashes works.

Gonna open a mr soon, replacing the url. :)

@sleepy-nols
Copy link
Contributor Author

an anyone reproduce this on others sites that use nexisuni but a different bib?

@sleepy-nols
Copy link
Contributor Author

somehow I cannot trigger this error consistently

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