Reputation: 11
[server]
hostname = "mycn"
internal_hostname = "mycn"
offset=1
base_path = "${carbon.protocol}://${carbon.host}:${carbon.management.port}"
#discard_empty_caches = false
server_role = "default"
i have added this in my deployment.toml and put the new certificate but when i try to access the /publisher/apis i get a error and in the logs i get :
Caused by: java.security.cert.CertificateException: No name matching localhost found
i think its something in the identity.xml file
<!--Intermediate certificate validation for certificate based requests-->
<IntermediateCertValidation enable="false">
<IntermediateCerts>
<!--Add intermediate certificate CN. Multiple <CertCN> elements can be used for multiple certificates.-->
<CertCN>localhost</CertCN>
</IntermediateCerts>
<ExemptContext>
<!--Add exemptable context paths. Multiple <Context> elements can be used for multiple contexts.-->
</ExemptContext>
</IntermediateCertValidation>
but i cant change localhost as its being overridden when i restart the app
[2025-03-07 12:31:58,461] INFO {org.wso2.config.mapper.ConfigParser} - Configurations Changed in :repository/resources/security/sslprofiles.xml
[2025-03-07 12:31:58,461] INFO {org.wso2.config.mapper.ConfigParser} - Configurations Changed in :repository/conf/identity/identity.xml
[2025-03-07 12:31:58,461] INFO {org.wso2.config.mapper.ConfigParser} - Configurations Changed in :repository/resources/security/listenerprofiles.xml
[2025-03-07 12:31:58,461] INFO {org.wso2.config.mapper.ConfigParser} - Overriding files in configuration directory /home/wso2carbon/wso2am-4.3.0
any idea?
Upvotes: 0
Views: 24