I try to write a script for OpenVPN autoconfiguration. But when I try to import certificate and key for use, different devices show different behavior.
Most of them, as described in wiki, need to import first .crt file, then .key. Resulting certificate named <name>.crt_0
But several devices refuse to import .crt until .key file is imported. Resulting certificate named <name>.key_0
I need to use certificate name further in the script, but can't guess what it be, <name>.crt_0 or <name>.key_0
Is any method for setting the name of the imported certificate?
Thank in advance. And sorry for my bad English.