Connecting SAS 9.4 to SAS Viya: Resolving SSL Certificate Import Errors
Simon 31 vistas
Nivel de dificultad
Expert
Publicado el :
Consejo del experto
Simon
The SAS Deployment Manager is notoriously strict about file syntax and cannot parse extraneous comments or metadata. The critical success factor is manually constructing a clean .pem file where the Intermediate certificate is explicitly placed before the Root CA. Ensuring this specific order and removing non-code elements is the only way to successfully pass the validation path check
This article details the procedure to bypass common errors such as "Failed to validate the certificate path" or "Certificate file is not Base-64 encoded".
The file format: The raw file may contain comments or metadata that the import tool cannot parse.
The trust chain: The order of the certificates (Root and Intermediate) is strict and must be respected for the validation to succeed.
The Solution: Create a Clean Certificate File
To successfully import the certificate, you must not use the raw file as is. It is necessary to manually create a new .pem file containing only the required blocks, in the correct order.
The structure of your new file should look exactly like this:
New BufferRO
-----BEGIN CERTIFICATE-----
<Bloc de texte du certificat SAS VIYA Intermediate CA>
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
<Bloc de texte du certificat SAS VIYA Root CA>
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
<Bloc de texte du certificat SAS VIYA Intermediate CA>
Select the option to add certificates to the Trusted CA Bundle.
Point to your viya™_import.pem file.
The import should now complete without any validation errors. Once this security step is passed, you can proceed to configure authentication (using an .authinfo or .netrc file) to finalize the connection between your environments.
Aviso importante
Los códigos y ejemplos proporcionados en WeAreCAS.eu son con fines educativos. Es imperativo no copiarlos y pegarlos ciegamente en sus entornos de producción. El mejor enfoque es comprender la lógica antes de aplicarla. Recomendamos encarecidamente probar estos scripts en un entorno de prueba (Sandbox/Dev). WeAreCAS no acepta ninguna responsabilidad por cualquier impacto o pérdida de datos en sus sistemas.
SAS y todos los demás nombres de productos o servicios de SAS Institute Inc. son marcas registradas o marcas comerciales de SAS Institute Inc. en los EE. UU. y otros países. ® indica registro en los EE. UU. WeAreCAS es un sitio comunitario independiente y no está afiliado a SAS Institute Inc.
Este sitio utiliza cookies técnicas y analíticas para mejorar su experiencia.
Saber más.