<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change in SAS Viya 3.5 from LDAP to LDAPS in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986195#M30778</link>
    <description>&lt;P&gt;Thank you for the guidance, you were absolutely right. The issue was exactly in that step, and your pointer to the certificate trust store documentation was the key to solving it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what worked in my environment:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Root cause&lt;BR /&gt;The CA certificates were provided as .pem files. The sas-merge-certificates.sh script only processes files with the .crt extension, so the CAchain was silently ignored and never added to trustedcerts.jks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps that resolved the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Rename the CA certificate files from .pem to .crt and copy them to the SAS cacerts directory:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cp root.pem /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/root.crt&lt;BR /&gt;cp intermedia.pem /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/intermedia.crt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Run the merge script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/sas/viya/home/SASSecurityCertificateFramework/bin/sas-merge-certificates.sh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. Verify the CA entries were imported into the trust store:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;keytool -list -keystore \&lt;BR /&gt;/opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.jks \&lt;BR /&gt;-storepass changeit | grep -i "your-ca-name"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. The sas-logon service (UAA) runs its own JVM and does not use the SAS trust store by default. It was still pointing to the standard&lt;BR /&gt;Java cacerts. Adding the following JVM options via Consul resolved the PKIX error on the logon side as well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Djavax.net.ssl.trustStore=.../trustedcerts.jks&lt;BR /&gt;-Djavax.net.ssl.trustStoreType=jks&lt;BR /&gt;-Djavax.net.ssl.trustStorePassword=changeit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Restart both sas-identities and sas-logon services.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The main takeaway, if your CA certificates are in .pem format, they must be renamed to .crt before the merge script will pick them up. And sas-logon requires its own explicit truststore configuration, separate from sas-identities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for pointing me in the right direction!&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2026 03:04:13 GMT</pubDate>
    <dc:creator>Maicfel</dc:creator>
    <dc:date>2026-04-11T03:04:13Z</dc:date>
    <item>
      <title>Change in SAS Viya 3.5 from LDAP to LDAPS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/985480#M30762</link>
      <description>&lt;P&gt;Dear,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131395"&gt;@admin&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443328"&gt;@viya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am changing the authentication type at the request of the infrastructure team from LDAP to LDAPS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I performed the following steps on the SAS Viya 3.5 machine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - In the Linux hosts file /etc/hosts, I added the new IP and new Host.&lt;/P&gt;&lt;P&gt;2 - I inserted the new certificate into the file /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem.&lt;/P&gt;&lt;P&gt;3 - I made the changes in the AS Environment Manager portal for the new IP, Port, and protocol in the LDAP URL to ldaps://${sas.identities.providers.ldap.connection.host}:${sas.identities.providers.ldap.connection.port}.&lt;/P&gt;&lt;P&gt;4 - I restarted sas-viya-saslogon sas-viya-identities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5 - Log I'm getting the following error: "SSLHandshakeException / PKIX path building failed"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; /opt/sas/viya/config/var/log/identities/default/sas-identities_2026-03-26_16-59-33.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 12:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/985480#M30762</guid>
      <dc:creator>Maicfel</dc:creator>
      <dc:date>2026-03-27T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SAS Viya 3.5 from LDAP to LDAPS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/985649#M30766</link>
      <description>This failure suggests an issue related to your step #2. The identities service does not have a trust chain to the certificate being served by the LDAP server.&lt;BR /&gt;Be sure you add certificates to the trust store using the method in the documentation rather than manually updating trustedcerts.pem:&lt;BR /&gt;Manage Truststores (Linux Full Deployment):&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/calencryptmotion/n1xdqv1sezyrahn17erzcunxwix9.htm#n1lpxsg7iwc2kon1c8g3vez9tbpy" target="_blank"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/calencryptmotion/n1xdqv1sezyrahn17erzcunxwix9.htm#n1lpxsg7iwc2kon1c8g3vez9tbpy&lt;/A&gt;</description>
      <pubDate>Mon, 30 Mar 2026 16:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/985649#M30766</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-03-30T16:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SAS Viya 3.5 from LDAP to LDAPS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986195#M30778</link>
      <description>&lt;P&gt;Thank you for the guidance, you were absolutely right. The issue was exactly in that step, and your pointer to the certificate trust store documentation was the key to solving it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what worked in my environment:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Root cause&lt;BR /&gt;The CA certificates were provided as .pem files. The sas-merge-certificates.sh script only processes files with the .crt extension, so the CAchain was silently ignored and never added to trustedcerts.jks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps that resolved the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Rename the CA certificate files from .pem to .crt and copy them to the SAS cacerts directory:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cp root.pem /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/root.crt&lt;BR /&gt;cp intermedia.pem /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/intermedia.crt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Run the merge script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/sas/viya/home/SASSecurityCertificateFramework/bin/sas-merge-certificates.sh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. Verify the CA entries were imported into the trust store:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;keytool -list -keystore \&lt;BR /&gt;/opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.jks \&lt;BR /&gt;-storepass changeit | grep -i "your-ca-name"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. The sas-logon service (UAA) runs its own JVM and does not use the SAS trust store by default. It was still pointing to the standard&lt;BR /&gt;Java cacerts. Adding the following JVM options via Consul resolved the PKIX error on the logon side as well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Djavax.net.ssl.trustStore=.../trustedcerts.jks&lt;BR /&gt;-Djavax.net.ssl.trustStoreType=jks&lt;BR /&gt;-Djavax.net.ssl.trustStorePassword=changeit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Restart both sas-identities and sas-logon services.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The main takeaway, if your CA certificates are in .pem format, they must be renamed to .crt before the merge script will pick them up. And sas-logon requires its own explicit truststore configuration, separate from sas-identities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for pointing me in the right direction!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2026 03:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986195#M30778</guid>
      <dc:creator>Maicfel</dc:creator>
      <dc:date>2026-04-11T03:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SAS Viya 3.5 from LDAP to LDAPS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986239#M30780</link>
      <description>I'm a bit confused by this response, though I'm pleased to hear your issue is resolved.&lt;BR /&gt;&lt;BR /&gt;The steps in the documentation I linked instruct you to store the contents of the cert files in the SAS Configuration Server (consul) and run the rebulid-trust-stores.yml playbook. The sas-merge-certificates.sh script is run by that playbook, not directly, retrieves the certificates from consul so the extension of the file is not relevant.&lt;BR /&gt;&lt;BR /&gt;The script also adds in any crt files stored in the directory /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts, which seems to be what you're referring to, but to use that method you'd need to store the cert files with a .crt extension and store them on every host in the Viya 3 deployment, and is not what is in the documentation for this process.&lt;BR /&gt;&lt;BR /&gt;Finally...the sas-logon service does use the SAS trust store by default, you don't need to add the javax.net.ssl.trustStore* options.</description>
      <pubDate>Mon, 13 Apr 2026 13:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986239#M30780</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-04-13T13:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SAS Viya 3.5 from LDAP to LDAPS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986249#M30783</link>
      <description>&lt;P&gt;Our deployment is a single-host Viya 3.5 environment, so copying the .crt files directly to /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/ and running the merge script directly was viable and effectively equivalent in our case, since there was only one host to update.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The .pem&amp;nbsp; .crt rename was relevant precisely because we placed the files directly in the cacerts directory (the secondary method you mentioned), not via Consul. The script only picked up files with .crt extension from that directory, which is why the rename mattered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regarding sas-logon / UAA: after running the merge script, sas-identities connected successfully, but sas-logon was still throwing the PKIX error. We verified this by checking the logs separately. It is possible that in our specific environment the UAA JVM was not picking up the SAS trust store automatically, perhaps due to a configuration drift or a customization made previously by the infrastructure team. Adding the explicit JVM truststore options resolved it. We acknowledge this may not be the standard behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, the core resolution aligned with what you pointed out, the certificates were not making it into trustedcerts.jks. The path we took to fix it differed slightly from the documented procedure due to environment-specific constraints, and I should have been clearer about that distinction in my original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for keeping the thread technically accurate, it will help anyone else who finds this discussion.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 14:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Change-in-SAS-Viya-3-5-from-LDAP-to-LDAPS/m-p/986249#M30783</guid>
      <dc:creator>Maicfel</dc:creator>
      <dc:date>2026-04-13T14:59:44Z</dc:date>
    </item>
  </channel>
</rss>

