OWA not verifying emails signed by OpenSSL

I am trying to create an android app which can send sign and encrypted mails using OpenSSL.
So far I am able to send Signed Emails and verify them using both web browsers and my android apps.
Same is the case with Encryption and Decryption.
But now when I am trying to send signed+encrypted mails from my android app. The Exchange server is unable to verify/decrypt the mails sent from my android app.
When I am trying to open these mails using OWA I get this error:
One or more errors occurred while the message was being loaded. Error: (0x800ccef6)
The digital signature of this message couldn't be validated because an error occurred while the message was being loaded.
Any pointers about what this error code means?
Sign Code:
public static boolean Java_PKCS7Sign(File inputFile, File outputFile, PrivateKey privateKey, X509Certificate certificate, String signingAlgorithm) {
try {
String inputFilePath = inputFile.getAbsolutePath();
String outputFilePath = outputFile.getAbsolutePath();
byte arr[] = android.security.Credentials.convertToPem(certificate);
InputStream certIs = new ByteArrayInputStream(arr);
OpenSSLX509Certificate openSSLcert = OpenSSLX509Certificate.fromX509PemInputStream(certIs);
byte openSSLcertEncoded[] = openSSLcert.getEncoded();
long signCertRef = NativeCrypto.d2i_X509(openSSLcertEncoded);
OpenSSLKey oKey = OpenSSLKey.fromPrivateKey(privateKey);
long evpKeyRef = oKey.getPkeyContext();
//boolean res = PKCS7Sign(signCertRef, pkeyRef, certs, bioRef, flags, a, b)
long arr1[] = new long[0];
return PKCS7Sign(inputFilePath, signCertRef, evpKeyRef, arr1, outputFilePath);
} catch (Exception e) {
e.printStackTrace();
return false;
In the above code PKCS7Sign is
a JNI call to OpenSSL. And the flags used are for signing are: int
flgs = PKCS7_STREAM | PKCS7_DETACHED | PKCS7_BINARY ;
Encrypt Code:
public static boolean Java_PKCS7encrypt(File inputData, File output, X509Certificate[] recipientCertificates, String encryptionAlgorithm) {
if(!inputData.exists() || !output.exists())
return false;
try {
fis = new FileInputStream(inputData);
OpenSSLBIOInputStream bis = new OpenSSLBIOInputStream(fis);
long bioRef = NativeCrypto.create_BIO_InputStream(bis);
int certsRefArrLength = recipientCertificates.length;
long certsRefArr[] = new long[certsRefArrLength];
for (int i = 0; i < certsRefArrLength; i++) {
byte arr[] = android.security.Credentials.convertToPem(recipientCertificates[i]);
InputStream certIs = new ByteArrayInputStream(arr);
OpenSSLX509Certificate openSSLcert = OpenSSLX509Certificate.fromX509PemInputStream(certIs);
byte openSSLcertEncoded[] = openSSLcert.getEncoded();
certsRefArr[i] = NativeCrypto.d2i_X509(openSSLcertEncoded);
String outputFilePath = output.getAbsolutePath();
return PKCS7encrypt(bioRef, certsRefArr, outputFilePath, encryptionAlgorithm);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (CertificateEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
return false;
Same as in case of sign PKCS7encrypt is
a JNI call to OpenSSL. And flags used are:
int flags = PKCS7_STREAM | PKCS7_BINARY;
And cipher used for encryption is cipher
= EVP_rc2_40_cbc();

Hi Sohan,
Agree with Ed.
This error seems caused by the App that created by yourself. It is very hard to say whether the code is correct, since I am not good at coding. It is out of our support boundary.
Thanks
Mavis
Mavis Huang
TechNet Community Support

Similar Messages

  • My facetime is asking me to verify my email address but i do it opened the email and verified than i get an error message saying could not verify email please check network connection. but i am connected to internet what do i need to do to access FaceTime

    my facetime wont open it askes to verify email i gort the email verified it and then i wait for awhile than i get a message saying that facetime couldnt verify email and to check network connectivity but i am connected to the internet. what do i need to do to get my factime working again?

    Hey Desireeesamaroon,
    Thanks for the question. I understand that you are experiencing issues with FaceTime on your Mac. The following resource may help you troubleshoot these issues:
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Thanks,
    Matt M.

  • FaceTime will not verify email on iPad

    I am trying to setup factetime for a family member. I get to the verify window it goes throughou the verify but shoots back to the sign in page. How can I fix this problem so I can finish setting up facer time on the iPad.

    What do you mean the sign in page? When the Email address is verified, you have to go to the inbox of that email account and follow the instructions in the email that you get from Apple in order to complete the verification process.
    If you see a message that stays something to the effect of "Resend verifying email" - go to that email account inbox. Check the spam folder was well. The verification email from Apple could end up in there.

  • Facetime not verifying email on mac

    I can't get facetime to work on my computer no matter what I do. It allows me to log in but absolutely will not verify my email. It then tells me an email has been sent to verify, but that email never comes. Sometimes it says verified and just freezes. Any solutions?

    Hello amritkaur,
    The article linked below provides some useful troubleshooting steps that can help get FaceTime working.
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/TS4185
    Cheers,
    Allen

  • After resetting my password my FaceTime and I cloud can not verify email already in use how do I fix this

    After resetting my password FaceTime and I cloud cannot verify email how do I fix this

    Try here...
    The Backup disk image ... sparsebundle ... is already in use.
    From Pondini’s excellent Information Here...
    http://pondini.org/TM/Troubleshooting.htm

  • OWA not openning enc + signed emails created by OpenSSL

    I am trying to create an android app which can send sign and encrypted mails using OpenSSL.
    So far I am able to send Signed Emails and verify them using both web browsers and my android apps.
    Same is the case with Encryption and Decryption.
    But now when I am trying to send signed+encrypted mails from my android app. The Exchange server is unable to verify/decrypt the mails sent from my android app.
    When I am trying to open these mails using OWA I get this error:
    One or more errors occurred while the message was being loaded. Error: (0x800ccef6)
    The digital signature of this message couldn't be validated because an error occurred while the message was being loaded.
    Any pointers about what this error code means?
    Sign Code:
    public static boolean Java_PKCS7Sign(File inputFile, File outputFile, PrivateKey privateKey, X509Certificate certificate, String signingAlgorithm) {
    try {
    String inputFilePath = inputFile.getAbsolutePath();
    String outputFilePath = outputFile.getAbsolutePath();
    byte arr[] = android.security.Credentials.convertToPem(certificate);
    InputStream certIs = new ByteArrayInputStream(arr);
    OpenSSLX509Certificate openSSLcert = OpenSSLX509Certificate.fromX509PemInputStream(certIs);
    byte openSSLcertEncoded[] = openSSLcert.getEncoded();
    long signCertRef = NativeCrypto.d2i_X509(openSSLcertEncoded);
    OpenSSLKey oKey = OpenSSLKey.fromPrivateKey(privateKey);
    long evpKeyRef = oKey.getPkeyContext();
    //boolean res = PKCS7Sign(signCertRef, pkeyRef, certs, bioRef, flags, a, b)
    long arr1[] = new long[0];
    return PKCS7Sign(inputFilePath, signCertRef, evpKeyRef, arr1, outputFilePath);
    } catch (Exception e) {
    e.printStackTrace();
    return false;
    In the above code PKCS7Sign is
    a JNI call to OpenSSL. And the flags used are for signing are: int
    flgs = PKCS7_STREAM | PKCS7_DETACHED | PKCS7_BINARY ;
    Encrypt Code:
    public static boolean Java_PKCS7encrypt(File inputData, File output, X509Certificate[] recipientCertificates, String encryptionAlgorithm) {
    if(!inputData.exists() || !output.exists())
    return false;
    try {
    fis = new FileInputStream(inputData);
    OpenSSLBIOInputStream bis = new OpenSSLBIOInputStream(fis);
    long bioRef = NativeCrypto.create_BIO_InputStream(bis);
    int certsRefArrLength = recipientCertificates.length;
    long certsRefArr[] = new long[certsRefArrLength];
    for (int i = 0; i < certsRefArrLength; i++) {
    byte arr[] = android.security.Credentials.convertToPem(recipientCertificates[i]);
    InputStream certIs = new ByteArrayInputStream(arr);
    OpenSSLX509Certificate openSSLcert = OpenSSLX509Certificate.fromX509PemInputStream(certIs);
    byte openSSLcertEncoded[] = openSSLcert.getEncoded();
    certsRefArr[i] = NativeCrypto.d2i_X509(openSSLcertEncoded);
    String outputFilePath = output.getAbsolutePath();
    return PKCS7encrypt(bioRef, certsRefArr, outputFilePath, encryptionAlgorithm);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    } catch (CertificateEncodingException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    return false;
    Same as in case of sign PKCS7encrypt is
    a JNI call to OpenSSL. And flags used are:
    int flags = PKCS7_STREAM | PKCS7_BINARY;
    And cipher used for encryption is cipher
    = EVP_rc2_40_cbc();

    Hi Sohan,
    Agree with Ed.
    This error seems caused by the App that created by yourself. It is very hard to say whether the code is correct, since I am not good at coding. It is out of our support boundary.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Can not verify email via link sent to email

    Yet more bull**bleep**....
    I click the link in my email to verify my Smart Setup Router Account, and I get this, no matter how many times I send a verify link and click it....
    2315
    We've encountered an unexpected error. If the issue continues, please visit ourTechnical Support site. 
    Hide details
    /cloud/user-service/rest/verifications/8A7C278651244762BAB55611080A7C71DC9A1DE52745435BA6301BFD4A95E94ETo/status/ -- Pragma: no-cache Date: Thu, 18 Jul 2013 23:39:48 GMT Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/1.0.0d mod_jk/1.2.28 Content-Language: en-US Content-Type: application/json;charset=UTF-8 Cache-Control: no-cache, no-store, max-age=0 Connection: keep-alive Content-Length: 139 Expires: Thu, 01 Jan 1970 00:00:00 GMT

    Did you try to delete cookies and browsing history just to further isolate the issue? Did you experience this problem on both wired and wireless computers connected to the router? Can you still go online wired and wirelessly connected to your router even if you experienced this problem? It would be best to install the latest firmware on your router.

  • Account Not Verified - email never sends

    I am trying to verify my account.  I check my email and it never arrives.  How do I get out of this endless cycle?

    Just bought an iPad in the uk today and got the same problem!!!

  • My ipad face time will not verify or sign in!

    I have reset my ipad 2 ,updated it, tried signing in with a different profile and everything possible! I try to sign in on face time but it wont do it! I put in my apple id and the password and the password is correct but when i click the sign in button it goes to the next pages then maxium of 3 seconds it jumps back to the sign in page. I can sit there and click the sign in thing all day but it just keeps doing the same thing. I even waited a couple of days before i tried it again but same thing. Someone please help!

    Try a Reset...
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    Also, See Here for...
    Troubleshooting FaceTime
    http://support.apple.com/kb/TS3367
    FaceTime... Set Up... Use and Trouble Shooting Guide

  • Icloud not verified, says email sent but i dont receive it on my apple ID

    I am new to icloud. When i try to sign in it says account not verified, email sent on my apple ID but I haven't received any email.

    Did you check your spam folder?

  • I have created apple id. rescue email id verified. I like to download songs and software message displayed you have not verified. what i will do

    I have bought ipad mini. I have created apple id with rescue email id is gmail. email verification sent to rescue email address and verified email verification. I would like to download software and others from my apple id but message displayed" you have not verified email. Again resent verification, message displayed "you have previously verified. My apple id not displayed in box. your email verification sent to your apple id but sign in my apple id but inbox not displayed and no emai content. how i dowload from itune and istore.
    Thank you

    Did you create a brand new account or change an existing Apple ID?

  • TS3899 I can not open email on my new ipad so I can not verify new email help

    I Can not open email on my new ipad so I can not verify email help

    same, ive been trying for hours, it isnt clear were ou can verify it, it has said on the apple store i have but yet when i try get a app it says i have to verify it, ive set it all up but cannot find were to sort it out, i am going to try to turn it off and on!?

  • MacBook FT email address not verified

    On new MacBook, FT says "could not verify email address...check network connection again."  Please help me.  I'm so frustrated with the things that aren't working on this expensive piece of equipment.

    i googled this problem and it seems a lot of people are having this problem and there many apple discussions on the subject which helped me fix it. I think it has to do with different login/id's for different apple applications (i am not a computer person so sorry if wrong lingo) Anyway someone talked about their itunes id not matching their other id's. They key is to get them all matching. I went into my itunes and it was a ....mac.com id so i changed it to my ...hotmail.com id and but another problem was the ...mac.com id was still out there in apple computer space saying my primary email address was ...hotmail.com so i changed my primary email on that ....mac.com id to a mac.com email address that doesn't exist. The address you are using should only be associated with one id. It only took my like 12 hours including calling apple support which didn't help even after 2hrs on the phone with the and reloading the operating disc or whatever it's called....again that did not work. Hope my rambling helped someone.

  • HT204053 When I initially try to sign in to iCloud, I get the "Account not verified" screen and I am told to check my email for instructions to verify.  No email is ever sent. My ID and password work on all other Apple app's.  Why not for iCloud?

    When I initially try to sign in to iCloud, I get the "Account not verified" screen and I am told to check my email for instructions to verify.  No email is ever sent. My ID and password work on all other Apple app's.  Why not for iCloud?

    I've tried both. First, I tried on my pc, where iTunes had installed iCloud when it last updated. I have iTunes installed on this computer (and on my iPad and iPhone), but that wasn't the issue.
    So I went online, thinking I needed a separate iCloud Apple ID, but it prompted me for my current Apple ID and gave me the message about my ID being "valid" but not an iCloud account," which, lol, was what it had asked me to do in order to create one. I checked, and at least one other user is having the same issue. I'll attempt to copy/paste the Support request url: https://discussions.apple.com/thread/4430653?tstart=0
    Thank you for any help you can give.
    Trish

  • TS4268 I'm stuck on activation for imessage, I sign in but when it goes to verify email it gets stuck. The situation now is that the email verification screen for iMessages is not letting me access my regular msgs. I can only see msgs in notifications

    I'm stuck on activation for imessage, I sign in but when it goes to verify email it gets stuck. The situation now is that the email verification screen for iMessages is not letting me access my regular msgs. Imessage has blocked my regular messages. I can only see msgs in notifications. Even in contacts the option for message contact has vanished.  The phone is just stuck on the verify email screen and my mail is already verified by appleid. iv tried multiple working iTunes accounts but still no go.

    Reset the phone (no data loss): press both the home and power buttons for at least 10 seconds, releasing when the Apple logo appears.

Maybe you are looking for

  • Unable to call WSS (WS-Security) enabled Web Service using UTL_DBWS

    We are attempting to call a WSS (WS-Security) enabled Web Service from PL/SQL using the UTL_DBWS package (see [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_dbws.htm#CHDIDGJH] ). We are doing this in similar fashion to [http://www.

  • IOS 8 Instant Hotspot doesn't work!

    HI, I have an iPhone 5S and into on sprint running iOS 8. My iPad Air which is wifi only, is on iOS 8 also. I cannot find the option for personal hotspot in my phone. Where can I find it?

  • Custo Infotype

    Hi Friends, I am creating one custom infotype.... in that i am giving the field 'Building Number'- for this field whenever the user click F4 an pop-up window should appear with fields building no, company code and region. Here the company code should

  • CFP-2220 with LV7.1

    I recently purchased a cFP-2220 controller. I am running LabVIEW 7.1, the controller shipped with Fieldpoint 6.0.1. I had Fieldpoint 5.0.1 installed - it could not see the controller. So, I installed 6.0.1 - the controller was visible with an IP of 0

  • BBZ10 not loading at all! Please help!!!

    My Z10 randomly switched off itself yesterday at 9am (UK), and despite me switching it on and waiting for it to load up again, it just got stuck at 90% loading and doesnt do anything further. I have recharged my phone, removed and inserted the batter