1
Software / Re:Šifrování pg_dump pomocí OpenSSL
« kdy: 15. 05. 2024, 15:17:40 »
A co zkusit misto -in to pri desifrovani taky brat jako stream?
Tak otestovano s pridanym parametrem -stream:Kód: [Vybrat]#cat ./db3_15.05.24-00_00.sql.gz | openssl smime -encrypt -aes256 -binary -stream -outform DEM -out ./encrypted.sql.gz.ssl pgdump_backup.pem
-rw-r--r-- 1 root root 7910422089 May 15 00:28 db3_15.05.24-00_00.sql.gz
-rw-r--r-- 1 root root 7918147866 May 15 09:36 encrypted.sql.gz.sslKód: [Vybrat]#openssl smime -decrypt -in ./encrypted.sql.gz.ssl -binary -inform DEM -inkey ./pgdump_backup_key.pem -out ./decrypted.sql.gz
Error reading S/MIME message
4077734DF87F0000:error:038C0100:memory buffer routines:BUF_MEM_grow_clean:malloc failure:../crypto/buffer/buffer.c:128:
4077734DF87F0000:error:068C0100:asn1 encoding routines:asn1_d2i_read_bio:malloc failure:../crypto/asn1/a_d2i_fp.c:209:
#openssl smime -decrypt -in ./encrypted.sql.gz.ssl -binary -stream -inform DEM -inkey ./pgdump_backup_key.pem -out ./decrypted.sql.gz
Error reading S/MIME message
40073BBB2D7F0000:error:038C0100:memory buffer routines:BUF_MEM_grow_clean:malloc failure:../crypto/buffer/buffer.c:128:
40073BBB2D7F0000:error:068C0100:asn1 encoding routines:asn1_d2i_read_bio:malloc failure:../crypto/asn1/a_d2i_fp.c:209:
#free -h
total used free shared buff/cache available
Mem: 47Gi 13Gi 3.2Gi 11Gi 42Gi 33Gi
Swap: 2.7Gi 1.3Gi 1.4Gi
To je sranda. Tak zpatky na zacatek nekam do praveku...