{"id":3737,"date":"2014-03-04T22:59:35","date_gmt":"2014-03-04T22:59:35","guid":{"rendered":"https:\/\/agix.com.au\/blog\/?p=3737"},"modified":"2014-03-04T22:59:35","modified_gmt":"2014-03-04T22:59:35","slug":"encrypt-large-files-with-openssl-using-publicprivate-keys","status":"publish","type":"post","link":"https:\/\/agix.com.au\/encrypt-large-files-with-openssl-using-publicprivate-keys\/","title":{"rendered":"Encrypt Large Files With OpenSSL Using Public\/Private Keys"},"content":{"rendered":"

This article explains how to encrypt large files with OpenSSL and Public\/Private keys.<\/p>\n

Create your key-pair:<\/p>\n

\nopenssl req -x509 -nodes -newkey rsa:2048 -keyout private.pem -out public_nopass.pem\n<\/pre>\n

Encrypt your larger file:<\/p>\n

\nopenssl smime -encrypt -aes256 -in bigfile.tar -binary -outform DEM -out bigfile.tar.ssl public.pem\n<\/pre>\n

Decrypt your file:<\/p>\n

\nopenssl smime -decrypt -in bigfile.tar.ssl -binary -inform DEM -inkey privatekey.pem -out bigfile.tar\n<\/pre>\n

At this stage you’ve been able to create your key-pair, encrypt and decrypt files. <\/p>\n","protected":false},"excerpt":{"rendered":"

This article explains how to encrypt large files with OpenSSL and Public\/Private keys. Create your key-pair: openssl req -x509 -nodes -newkey rsa:2048 -keyout private.pem -out public_nopass.pem Encrypt your larger file: openssl smime -encrypt -aes256 -in bigfile.tar -binary -outform DEM -out bigfile.tar.ssl public.pem Decrypt your file: openssl smime -decrypt -in bigfile.tar.ssl<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,13],"tags":[],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/posts\/3737"}],"collection":[{"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/comments?post=3737"}],"version-history":[{"count":0,"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/posts\/3737\/revisions"}],"wp:attachment":[{"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/media?parent=3737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/categories?post=3737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agix.com.au\/wp-json\/wp\/v2\/tags?post=3737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}