Google Drive backups no longer function

Started by bucker00, January 31, 2024, 09:06:37 AM

Previous topic - Next topic
Since the upgrade all working good, except for Google Drive backup failed when I tried a manual one.
The error was that the p12 key wasn't valid.
I removed and regenerated a new key but get the following response:

The following input errors were detected:

- Invalid P12 key, openssl_pkcs12_read() failed
- Saved settings, but remote backup failed.



Pretty sure this isn't a me problem as all the other settings are unchanged.
Can someone give theirs a go




This has also now been logged as a bug https://github.com/opnsense/core/issues/7184
Thank you for the confirmation folks!

The info in the bugtracker to solve the issue did not work for me, but it pointed me into the right direction:
https://www.practicalnetworking.net/practical-tls/openssl-3-and-legacy-providers/

I modified the /usr/local/openssl/openssl.cnf file

[provider_sect]
default = default_sect
legacy = legacy_sect

and

[default_sect]
activate = 1
[legacy_sect]
activate = 1


restarted webgui --> Backup worked

Since it's patching a template it doesn't work immediately, but a reboot or a reconfiguration of the trust subsystem would do the trick (but I don't know which GUI knob that is from the top of my head).


Cheers,
Franco

Got that franco, thank you for clarification

January 31, 2024, 08:50:20 PM #8 Last Edit: January 31, 2024, 08:57:03 PM by Starrbuck
Quote from: amichel on January 31, 2024, 07:49:49 PM
I modified the /usr/local/openssl/openssl.cnf file

[provider_sect]
default = default_sect
legacy = legacy_sect

and

[default_sect]
activate = 1
[legacy_sect]
activate = 1


restarted webgui --> Backup worked

This worked for me as well after a reboot.


This worked flowless and corrected the issue thank you so much for the information. 

Works as described by amichel and Starrbuck. Thank you very much

Will there be a future patch/update that will be deployed to address this issue for those of us that do not want to manually modify the file referenced above?

February 02, 2024, 09:40:57 PM #13 Last Edit: February 02, 2024, 09:53:00 PM by jp0469
Quote from: adamrc on February 02, 2024, 07:40:47 PM
Will there be a future patch/update that will be deployed to address this issue for those of us that do not want to manually modify the file referenced above?
You don't have to manually edit the file. You can just apply the commit from github yourself.

opnsense-patch d8ba131

Or you can wait until the next OPNsense update.

Quote from: jp0469 on February 02, 2024, 09:40:57 PM
Quote from: adamrc on February 02, 2024, 07:40:47 PM
Will there be a future patch/update that will be deployed to address this issue for those of us that do not want to manually modify the file referenced above?
You don't have to manually edit the file. You can just apply the commit from github yourself.

opnsense-patch d8ba131

Or you can wait until the next OPNsense update.

That worked great! Thanks! I had to reboot for the changes to apply.