Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
[MIGRATION] OpnSense backup to Gdrive
« previous
next »
Print
Pages: [
1
]
Author
Topic: [MIGRATION] OpnSense backup to Gdrive (Read 659 times)
hunter86_bg
Newbie
Posts: 35
Karma: 0
[MIGRATION] OpnSense backup to Gdrive
«
on:
February 06, 2024, 07:38:12 pm »
Hi All,
After a migration from 23.7 to 24.1 my backup to GDrive stopped working.
I followed the official documentation and created a new cert and so on. It failed , but the fault is not in OpnSense but in the fact that openssl no longer supports legacy encryption.
In order to workaround the problem , I've copied the p12 to a legacy system (RHEL8) and extracted the contents of the p12 , so I could later recreate it on a newer system.
On RHEL8 or equivalent run the following:
openssl pkcs12 -in my-cert-from-gcp.p12 -nodes
Obtain the Public and Private keys from the output and save the output to a more modern system (most probably it would work on Opnsense shell but I tested it on RHEL9).
Run the following and provide "notasecret" for password:
openssl pkcs12 -export -out gdrive.p12 -inkey privkey.pem -in pubkey.pem
Then upload your p12 and test the backup.
Logged
danderson
Full Member
Posts: 107
Karma: 9
Re: [MIGRATION] OpnSense backup to Gdrive
«
Reply #1 on:
February 06, 2024, 07:44:48 pm »
https://forum.opnsense.org/index.php?topic=38461.0
https://forum.opnsense.org/index.php?topic=38644.0
system: enable OpenSSL legacy provider by default to allow Google Drive backup to continue working with OpenSSL 3
Logged
hunter86_bg
Newbie
Posts: 35
Karma: 0
Re: [MIGRATION] OpnSense backup to Gdrive
«
Reply #2 on:
February 06, 2024, 07:47:21 pm »
Well, I missed that but I think my way is more secure.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
[MIGRATION] OpnSense backup to Gdrive