Skip to main content
fritzikus1302
New Member
Oct 4, 2020 4:42 PM UTC
Question

SSLVPN Certificate Parse Error

Hello Guys,

 

i want to renew my certificate for ssl vpn over ssh. it worked but now i get the error "Input is not a valid/matched certificate. node_check_object fail! for certificate".

 

Can someone help me pls. I've post the log from my ssh commands.

 

Thanks

9 replies

boneyard
Valued Contributor
Oct 10, 2020 7:13 AM UTC

you need to import a certificate and key to be able to use it as SSLVPN server cert.

 

do you have a .p12 of .pfx file for this?

 

or did you use the same key to generate this new cert?

 

EDIT please dont share the certificate + key if you post a reply, it probably is password protected but still, rather keep that save.

Translate
nikriaz
Explorer
Sep 9, 2025 9:34 PM UTC

Exactly the same problem. Were you able to figure it out?

Translate
Toshi_Esumi
SuperUser
SuperUser
Sep 9, 2025 9:53 PM UTC

If you get only a renewed cert and you don't have private key (included in the PKCS#12(PFX) file) and the password you used to generate it originally, you have to do this CLI method to preserve the encrypted private key while swapping the cert to the new one.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-import-a-new-local-certificate-after/ta-p/192999

Toshi

Translate
nikriaz
Explorer
Sep 10, 2025 6:31 AM UTC

Thank you for reply.

I see this article and I confirm that this error text with error number "-651" means no matching certificate for the existing key. When I try to renew certificate only for the same, existed key, as described in the article above, it DOES work. However, it is not real-world scenario. Typically renewed certs come with new key.

I found another article:
https://community.fortinet.com/t5/FortiGate/Technical-Note-Upload-Certificate-using-PEM-format/ta-p/197317

Whatever I try I always get an error "Invalid private key, password may be required" when I try to upload new key, whether the PEM is encrypted with password or not. "set password" does not work either. The article just suggests "In such cases try getting a new key from the certificate authority and reupload." but this explain nothing unfortunately. 

The question is whether it is possible at all to update existing certificate in-place with new key or not?

UPDATE: I finally found proper format for a key which is PKCS#8 with no password and now it works. Certificate gets in-place renewed with new key. Version is 7.6.3.

Translate
Toshi_Esumi
SuperUser
SuperUser
Sep 10, 2025 6:53 AM UTC

If you got a new cert with a new private key, that's a completely new certificate set. You just need to import it as a new one. It doesn't matter the current one exist or not. 
I never tried PEM installation. Try create PKCS#12 format file based on those unencrypted cert+key. There are multiple tools available. But I think the most common one is OpenSSL on Linux. Just make sure you save the password you used to encrypt to a safe and foundable place.

Toshi

Translate
mattewwade06
New Member
Sep 15, 2025 11:38 AM UTC

I’ve run into a similar issue before, and in my case it turned out the certificate format wasn’t right. When you renew it over SSH, make sure both the cert and key are in PEM format, and don’t forget to include the intermediate CA if needed. This Fortinet article explains the process step by step and might help clear the error:
https://community.fortinet.com/t5/FortiGate/Read moreTechnical-Note-Upload-Certificate-using-PEM-format/ta-p/197317

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024