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.
Important Disclaimer
The codes and examples provided on WeAreCAS.eu are for educational purposes. It is imperative not to blindly copy-paste them into your production environments. The best approach is to understand the logic before applying it. We strongly recommend testing these scripts in a test environment (Sandbox/Dev). WeAreCAS accepts no responsibility for any impact or data loss on your systems.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.