Ubuntu 17.10 digital signature import failed

I’m running ubuntu 17.10 with LO 6.0.1~rc1. I’m attempting to import a public key. I select File->Digital Signatures->Start Certificate Manager->File->Import. I select the key. I press the import button and receive
"import failed: Fatal: can’t create directory ‘/home//~/.gnupg’: no such file or directory.

Ideas?
Thank you

I’m not sure whether this will help, but probably worth taking a look at this Q&A on AskUbuntu just in case: “How do I make a digital certificate available to LibreOffice Writer for digital signatures?”. But your error message suggests something else is going on – do you have permissions to the path that is specified?

I have no control over the path that LO is attempting to access. If you notice the path it uses it is /home//~/.gnupg Notice the added “`” (i.e,. tilde) between the username and the .gnupg
directories. That’s the problem. I have complete permissions on my own directory and the .gnupg directory. The directory it should be using is /home/<my username/.gnupg After reading your comment I then looked for a way to change the path in LO. There is none.

One would think the path would be located in Options->Paths. or in Security but it is not

Since Firefox version 56 (not the ESR version), Mozzila changes the default dbm format from files cert8.db, key3.db and secmod.db to sql format cert9.db, key4.db and pk12mod.db. These new format were not recognized by LO, only the dbm format or from some Certificate Manager, like as Kleopatra that is called when “Start Certificate Manager” button is pressed.
The is another “command-line” (hard) alternative by using the libnss3-tool package. This package installs certutil and pks12util. certutil and pks12util handle the both format (dbm and sql). You can export the certificates from firefox and create the dbm files (cert8.db, key3.db, etc) at same path of your firefox profile and all certificates will be available to LO, after pressing “Sign Document”.