. . . "ODSMailEncryptAsymmetric" . . . "ODSMailEncryptAsymmetric" . "2017-06-13T06:08:08Z" . . "bb5a1cd9c50548de2437c276de2f94a2" . . . "---+ ODS Webmail Example for Encrypting Emails using Asymmetric Key Technology\n\nAssume the following scenario where John sends encrypted email message to Kate:\n\n---++Prerequisites\n\n 1. Perform the steps from the [[OdsMailInstallGuide][Virtuoso ODS-Mail Installation Guide]].\n * In our example we will use for domain name: mytest.com\n 1 Install the ODS Addressbook vad package: [[https://virtuoso.openlinksw.com/download/][ods_addressbook_dav.vad]]\n\n---++Configure ODS User and Webmail settings\n\n 1 Register two users in ODS: John and Kate respectively with emails for ex.: john@yahoo.com and kate@yahoo.com\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 John and Kate create ODS Webmail instances:\n 1 Go to Application Settings ->Application Management and click \"New Web Application\" button:\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 Click \"Create Application\" for application type \"Mail\".\n 1 In the presented form choose domain \"mytest.com\":\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 Click \"Create and Launch Application\" \n 1 John [[ODSGenerateX509Certificate][creates X.509 Certificate]] with mail john@mytest.com.\n 1 Kate [[ODSGenerateX509Certificate][creates X.509 Certificate]] with mail kate@mytest.com.\n 1 John exports his X.509 Certificate, for ex. to local file with name john.p12.\n 1 Kate exports her X.509 Certificate, for ex. to local file with name kate.p12.\n 1 Kate extracts her Public Key and shares it to John:\n\n$ openssl pkcs12 -in kate.p12 -out KatePublicKey.pem -clcerts -nokeys\nEnter Import Password:*******\nMAC verified OK\n \n * Suppose the generated Public Key KatePublicKey.pem has the following content:\n\nBag Attributes\n friendlyName: kate's OpenLink Software, Inc. ID #2\n localKeyID: 86 14 1A E2 08 CD 05 DC 37 37 04 ED A3 A9 7A 2E AF 7C 3D F2 \nsubject=/CN=kate/C=US/O=OL/emailAddress=kate@mytest.com\nissuer=/C=US/ST=MA/O=OpenLink Software, Inc./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1UtjcZnuVD4rH5Bzdpgg/lwwf3w8xN2HVhH20\n4akMT9PvNVQaxcprBCLTmfXZ7mi14GiGvkKND/3wdDrp+06J3NE28/0uYPL6HS4b\nUak9U4PRXcsLKTyHSnZ6zHll/cQ4f8V9U4Wjm2/BXxNeOdEB2U3NVG1lhc2xBBs8\nNkXNl78xb9ME99EIaZKuASPBspY+tWPmofL0DPGH32hsPDGLrKWR/RAE1EqItyJe\np4+Fdm5sD7xgzHNuPLj9YYRfxHq31Al7cZZYh9fdvCYJQZDNDulxySqFI+tZ7SCp\nEMTMShHZxJNQCF0yHO4d3tOIzZq3EaaYQ4FguCTH0kQ7eiE=\n-----END CERTIFICATE-----\n\n\n 1 John creates ODS AddressBook instance: from \"Application Settings ->Application Management\" or click \"AddressBook\" from the left vertical navigation:\n%BR%%BR%%BR%%BR%\n 1 John adds a new AddressBook contact with name \"Kate\":\n 1 In the AddressBook UI, click \"New contact\":\n%BR%%BR%%BR%%BR%\n 1 In the presented \"Main\" tab enter \"name\": Kate \n%BR%%BR%%BR%%BR%\n 1 Go to tab \"Contact\" and enter \"Mail\": kate@mytest.com\n%BR%%BR%%BR%%BR%\n 1 Go to tab \"X.509 Certificate\" and enter the content of the Public Key from above for Kate: KatePublicKey.pem:\n%BR%%BR%%BR%%BR%\n 1 John and Kate set in their ODS Profile a Private Key:\n 1 Go to Profile ->Edit ->Security->Certificate & Private Key\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 Click \"Import key from local file\" and respectively for John select his certificate john.p12 and for Kate select her certificate kate.p12:\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 Enter \"Key Name\" for ex. respectively for John: JohnKey and for Kate: KateKey and provide the certificate password:\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 Click \"Import Key\"\n 1 As result for both John and Kate should be displayed in the Certificate & Private Key List the imported certificate:\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 John configures his Webmail Settings:\n 1 Go to Webmail instance->Preferences and set:\n 1 For \"Encryption (with certificate)\": select the \"JohnKey\" key.\n 1 Select \"Required (can't send message unless all recipients have certificates)\"\n%BR%%BR%%BR%%BR%\n 1 Finally click \"Save\"to set the changes.\n 1 Kate goes to her Webmail instance->Preferences and sets:\n 1 For \"Encryption (with certificate)\": select the \"KateKey\" key.\n%BR%%BR%%BR%%BR%\n 1 Finally click \"Save\"to set the changes.\n 1 John sends encrypted email message to Kate:\n 1 John goes to his Webmail instance -> Write Message:\n%BR%%BR%%BR%%BR%\n 1 For \"To\" field clicks the \"Select\" button or manually enters Kate's email kate@mytest.com>\n%BR%%BR%%BR%%BR%\n%BR%%BR%%BR%%BR%\n 1 John enters \"Subject\" for ex: \"This is encrypted msg\" and \"Message\": \"Simple test\" \n%BR%%BR%%BR%%BR%\n 1 John clicks \"send message\" and message for successfully sending the message should be shown:\n%BR%%BR%%BR%%BR%\n 1 Kate receives the encrypted message from John:\n 1 Kate goes to her Webmail instance -> Inbox where should be displayed the new message from John:\n%BR%%BR%%BR%%BR% \n%BR%%BR%%BR%%BR% \n\n---++Related\n\n * [[OdsMail][ODS-Mail]]\n * [[ODSMailEncryptASymmetricSpecial][ODS Webmail Example for Encrypting Emails using special search by domain]]\n * [[ODSMailEncrypt][ODS Webmail Guide for Optionally Encrypting Emails]]\n * [[ODSMailSendDigitallySignedMsg][ODS Guide for Sending Digitally Signed Messages]]\n * [[ODSMailWebIDSMIME][ODS-Mail Evaluate SMIME + WebID Support Guide]] \n\n" . . "2018-04-05T15:34:51Z" . . . . "2018-04-05T15:34:51.581310"^^ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "2017-06-13T06:08:08.073109"^^ . . . . . . . "ODSMailEncryptAsymmetric" . .