Manual backup encryption
-
Hello,
At https://docs.netgate.com/pfsense/en/latest/backup/configuration.html it is written that encrypted manual backup files are encrypted using AES-256.
Is there a tool to decrypt them offline? (assuming, of course, that I have the password) (I'm using Windows)
I also did a small test, I did two manual backups: One without encryption and one with encryption.
Then I used a local app to encrypt the plain text file with AES-256, with the same password I used to do encrypted backup via pfSense - but the format of the file looks very different from the one of the encrypted file from pf.PF encrypted backup output start like:
"
---- BEGIN config.xml ----
U2FsdGVkX19FwltB4M2tvcgaVxFq1mQ80m27XQrHFcM9UBxy714phpgso5VEl7z8
l67qs6lod/dlrqlU8voA58sSJSOYk6vws3rE3u3MVdUCXgpGOdH3UHFa3DOdZqfE
"The locally encrypted file from the plain text backup looks like that at the start of it:
"
PK3 A( 0 ׳ל0Le¼lmֱב¿¨ f @ˆ ׃?ֲ‹״הmנ)o}‹°ֵ{Eֻˆq>Pר‚<u%
ל5m &ֽu¾ysמ½®ם)1ˆ½תךhIj‹‘†ַםbת×׃§ױ…כ ב׃.4ֲ‰.׃בs(¨ˆ‡\>ְ±Pץָי^‡ְֳֶ”;Z0<÷´.G^ ָHֺX6pƒ¿n×₪–סrW m
ֳo¨E•wI3×g¨dqF שה“´%r˜ב°1ִ=ׂ'@ַ ׂ¯$+o"¬₪ֶLנץטץֻD׀ב91¥¬ֲׁ@‹¬½o3ץB
ִ
˜¥”ֻC}g46Cw׳¾ִ#k¸¾oLױ׳0}ָQ״ק₪zקלׂ£pד‘Yשִװדֱן—„9AX^ס«y='ˆ÷ׁIA½d“4»L׃¥ֱ—נdֶµ¯@¼ֳ†ן_¾¨pRִ”Fע)/Jj[9ן!ˆ׳±yet~G¼»׀!XjpZ5wקszׁ"8ג~>₪ײהFFגכ‰?דס׃ַ(ƒ(ו”3Oˆֵ,[‘hGCg!(Vv"D‘bףX₪,8frִתתJ_fµיZ/׃ּט5 rx9ֳ²ֶש¬ֶ·j}QwS´מֹ<tהƒךר÷›ּM€םE>;c״~Iי¸ְ8
Vd9ױkב[ף²O4ׂ[,9הg7‚ ׁ²´v=0נװt·T;-תֱU;[ע2XמJT8ע„g´pֶָn2`¨b&avזƒיq-V|rTך$¹Uַכ'vכhב!ֹXע¦ז»PװuD7״;|=
־i¸°׃ֻ§C¹}ו3³’צ]
" -
You can using openssl, though I've never tried it in Windows:
https://docs.netgate.com/pfsense/en/latest/backup/restore.html#encrypted-configuration-filesSteve