openssl x509 -inform PEM -outform DER -in myfile.cer -out myfile.cer
the solution came from here:
and now stuff works for me on mobile and I'm happy, unless I want to use Firefox (for that purpose I will try this method https://blog.felixbrucker.com/2015/10/27/how-to-import-your-own-ca-cert-into-firefox-on-android/, hopefully it still works).
I had this issue this week when trying to install anything on my Linux Mint 19 Tara gave me an error message along the lines of
E: installing Assembly /usr/share/cli-common/policies.d/libglib2.0-cil/policy.2.8.glib-sharp.dll failed E: Installation of policy.2.8.glib-sharp with /usr/share/cli-common/runtimes.d/mono failed dpkg: error processing libglib2.0-cil (--configure): installed libglib2.0-cil package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of libgtk2.0-cil: libgtk2.0-cil depends on libglib2.0-cil (= 2.12.45-0xamarin14+ubuntu1804b1); however: Package libglib2.0-cil is not installed yet. dpkg: error processing libgtk2.0-cil (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mono-gac mono-runtime-common libglib2.0-cil libgtk2.0-cil E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried the steps in https://itsfoss.com/dpkg-returned-an-error-code-1/ up to "apt remove", at which point I got a
"Errors were encountered while processing: libglib2.0-cil libgtk2.0-cil E: Sub-process /usr/bin/dpkg returned an error code (1)"
The fix by ngwad at https://ubuntuforums.org/showthread.php?t=1666312 solved that issue - the files to be modified were
Then I purged mono-gac, after which installs and upgrades became possible again.
So now, apart from the working installs and all, I'm left with questions:
1. How adding a
return 0before shebang worked to resolve the processing errors?
2. What and when will break for the lack of mono-gac, and/or
3. what will break if I install mono-gac back.