Cadet 1st Class Cadet 1st Class
Cadet 1st Class
12175 views

Import certificate to SCA

Jump to solution

Good morning,

I am importing my SSC certificate to SCA and I get the following error.

error keytool: java.lang.Exception: no se ingresa un certificado X.509

the extension of my certificate is .p7b

This type of certificate or public key is not compatible with the cacerts file?

 

 

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Pochenco,

How did you create your certificate in the SSC server? Did you use the keytool to create it? if yes, you can use the keytool to export the certificate with the following command:

keytool -export -alias Cert -keystore C:\Users\Administrator\Documents\<name>.keystore -file <name>.cer

Then in the SCA server you can use the keytool to import the certificate:

keytool -import -alias Cert -keystore ..\lib\security\cacerts -file "C:\Users\Administrator\Desktop\<name>.cer" -trustcacerts

Regarding your question, based on the image attached, you can use the DER encoded binary X.509 (.CER)

View solution in original post

0 Likes
3 Replies
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Hello Pochenco,

Hope you are doing well,

Regarding your question, in your SSC server you need to export the certificate as .cer file. Once you have the .cer file you need to copy and  import it in the following directories of your SCA server: 

This is an example for Windows environments:

C:\Program Files\Java\jdk1.8.0_144\jre\bin

C:\Program Files\Java\jre1.8.0_144\bin

C:\Program Files\Fortify\Fortify_SCA_and_Apps_18.10\jre\bin

 

Regards,

0 Likes
Cadet 1st Class Cadet 1st Class
Cadet 1st Class

hi luis thank you for your answer,

It must be exported in what format:

0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Pochenco,

How did you create your certificate in the SSC server? Did you use the keytool to create it? if yes, you can use the keytool to export the certificate with the following command:

keytool -export -alias Cert -keystore C:\Users\Administrator\Documents\<name>.keystore -file <name>.cer

Then in the SCA server you can use the keytool to import the certificate:

keytool -import -alias Cert -keystore ..\lib\security\cacerts -file "C:\Users\Administrator\Desktop\<name>.cer" -trustcacerts

Regarding your question, based on the image attached, you can use the DER encoded binary X.509 (.CER)

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.