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

Adding missing SAN element in the certificate to resolve federated authentication flow failure #16215

Open
LakshiAthapaththu opened this issue Jul 10, 2023 · 0 comments

Comments

@LakshiAthapaththu
Copy link
Contributor

Is your suggestion related to a missing or misleading document? Please describe.
As reported in #16181, Federated authentication fails between two tenants in a host name changed IS. This is due to that if the certificate used for SSL communication has a cert, the hostname is checked in the defined SANs and newly defined hostname is not added into the SAN.

If the is.dev.wso2.com also added as a SAN issue gets resolved. Hence the document should be changed to add the is.dev.wso2.comalso as a SAN in,

Add localhost as SAN for the certificate (-ext SAN=dns:localhost) as the internal hostname is by default localhost. For that, navigate to the <IS_HOME>/repository/resources/security directory on the command prompt and use the following command to create a new keystore with CN=is.dev.wso2.com and localhost as SAN

Describe the improvement
In https://is.docs.wso2.com/en/latest/deploy/change-the-hostname/#change-the-hostname options 1, the given command should be changed to add the is.dev.wso2.com as a SAN as below.

keytool -genkey -alias <alias_name> -keyalg RSA -keysize 2048 -keystore <keystore_name>.jks -dname "CN=, OU=<organizational_unit>,O=,L=,S=<State/province>,C=<country_code>" -storepass <keystore_password> -keypass <confirm_keystore_password> -ext SAN=dns:localhost,dns:is.dev.wso2.com

Related Issues:
#16181

@LakshiAthapaththu LakshiAthapaththu changed the title Adding missing SAN in the certificate to resolve federated authentication flow failure Adding missing SAN element in the certificate to resolve federated authentication flow failure Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant