Community discussions

MikroTik App
 
User avatar
arnaldo
newbie
Topic Author
Posts: 45
Joined: Wed Sep 21, 2016 2:38 am
Location: localhost.localdomain

PKCS#12 certificate import not working on 7.2.2

Wed May 04, 2022 9:11 pm

I'm trying to import a PKCS#12 certificate and key under 7.2.2 and it's not finding anything inside the P12 file.
/certificate/import  file-name=test.p12 passphrase=fd6eef05 
     certificates-imported: 0
     private-keys-imported: 0
            files-imported: 0
       decryption-failures: 0
  keys-with-no-certificate: 0
I've double checked the file (downloaded from the RB5009 to my desktop) with openssl and all the certificate and key were all there.
I use it (with a script) to upload my LetsEncrypt certificate periodically. Worked like a charm for months, including some 7.x versions (I don't recall last time it worked, so I'm not sure of the exact version).

Any ideas?
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: PKCS#12 certificate import not working on 7.2.2

Thu May 05, 2022 12:11 am

Usually this indicates the certificate is in the store already...

Last time I tested it worked for me, but that was some weeks ago already - I can not name the exact version.
 
User avatar
arnaldo
newbie
Topic Author
Posts: 45
Joined: Wed Sep 21, 2016 2:38 am
Location: localhost.localdomain

Re: PKCS#12 certificate import not working on 7.2.2

Thu May 05, 2022 3:11 pm

Usually this indicates the certificate is in the store already...
Thanks for the pointer!
I've checked that already. But reminding of it gives me a hint. I will remove all certificates (if I can export the CA key, used to sign several OpenVPN certificates) and give it a try.

The RB5009 is a fantastic workhorse, but I've already had two unfortunate upgrade episodes (one I've lost all the configuration and on the second I had to NetInstall). Maybe something related.

Who is online

Users browsing this forum: bpwl, GoogleOther [Bot], jookraw and 79 guests