Encrypt electronic billing chain with MD5-RSA 1024 for Mexico rules

Hi,
I'm working in a task to create electronic billing for Mexico Rules, to do this; I need to use programs that will encrypt the source information.
For this reason, I'm looking how to use the method RSA with MD5 Encryption 1024 in some information that is stored in an Oracle Data Base.
All this is for the new legislations rules in Mexico to use electronic billing.
Please, if you have any reference about this, let me know.
Thanks and regards.

Hi Justin,
Tks for you answer.
Look, there are 2 steps where I’m working:
1. - First I need to use the MD5 to sign the original source chain that contains all the information of the electronic billing; then after obtain the sign,
2. - I need to encrypt the data using the encryption algorithm RSA of 1024 bits.
All this is the complement to give a valid electronic billing.
I will review the package that you mentioned, but if you have any other reference about this I will appreciate it.
Regards.

Similar Messages

  • Post billing invoice with different profit center for specific cond. type

    Hi Expert,
    I have requirement where for each item in the sales order, when the user create the billing document, the accounting document generated need to use one specific profit center on specific condition type.
    For example, my order profit center in the account assignment is PC1 (derived from material) and it has 2 condition type, Z1 and Z2.
    Currently for this condition type will be posted to 2 different GL account. (Configured in account determination)
    Going forward, the plan is to use same GL account for Z1 and Z2 but specific for Z2 should use different profit center (not taken from account assignment profit center).
    Is this possible and if it is may I know the best way to achieve it?
    Thank you before.

    Hi
    First of all check with the Controlling team wheather profit center can be assigned to the Z2 condition type only.If it is not possible then you assign a new subroutine to Z2 condition type with the help of ABAP team
    Regards
    Srinath

  • Process chain with attributes

    Hi Experts,
    i built a process chain with 4 Masterdata.
    I beginn with  start and for each master data, i set up an  infopackage and at the end , i created an Attribute with the 4 Masterdata als Infojects.
    1. When i save, the order changed.
    All the masterdata could not be upload.
    How can i built a better process chain with Attibutes?
    Thanks for your help.
    Cheers
    Pat

    Change the below chain accordingly, just add IP's for 3 more Infoobjects.
    Start
    Infopackge1A(Attr)|Infopackge2A(Attr)
    Infopackge1B(Txts)|Infopackge2B(Txts)
    Infopackge1C(Hier)______|
    \___________________|
    __\___________________|
    ___\__________________|
    ______ And Processer_ ( Connect IP 1C & IP 2B )
    __________|__________
    Attribute Change Run ( Add Infobject 1 & Infoobject 2 to this variant )
    Message was edited by:
            Jr Roberto

  • Encrypting String with MD5, then storing as String

    Hello.
    I believe I have a way to do this but I want to verify that:
    1) It is doing the action that I want
    2) There is no easier/simpler way with less lines
    What I am looking to do is take a String that is passed to the method, encrypt it using MD5 algorithm, and then store the result back into String form.
    In the following code encyptedPassword is the String to-be encrypted and this.encryptedPassword is the String for where I would like to save the result.
    try
                MessageDigest md=MessageDigest.getInstance("MD5");
                md.reset();
                md.update(encryptedPassword.getBytes());
                byte raw[]=md.digest();
                for(int x=0; x<raw.length;x++)
                    this.encryptedPassword+=(char)raw[x];
            catch(NoSuchAlgorithmException e)
                e.printStackTrace();
            }

    You will have to hex-encode or base-64-encode the encrypted data. String is not a container for binary data, and encrypted data is binary data.

  • Path does not chain with any of the trust anchors, but included in cacerts?

    I have implemented a CA that has a self-signed certificate:<CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE>
    I have a cert from this CA: <CN=realAnonym>
    With this cert, I want to make a SSL connection to some server with client authentication.
    <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> is included in the cacerts-file of the server.
    <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> (Part of trusted CA's) in my opinion match with <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> (second certificate in certificatechain of <CN=realAnonym>).
    But it doesn't ???
    execute the server with -Djavax.net.debug=ssl,handshake gives:
    <CN=GeoTrust Global CA, O=GeoTrust Inc., C=US>
    <CN=Entrust.net Certification Authority (2048), OU=(c) 1999 Entrust.net Limited,
    OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), O=Entrust.net>
    <CN=Equifax Secure Global eBusiness CA-1, O=Equifax Secure Inc., C=US>
    <OU=Go Daddy Class 2 Certification Authority, O="The Go Daddy Group, Inc.", C=US
    >
    <CN=VeriSign Class 1 Public Primary Certification Authority - G3, OU="(c) 1999 V
    eriSign, Inc. - For authorized use only", OU=VeriSign Trust Network, O="VeriSign
    , Inc.", C=US>
    <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> (Part of trusted CA's)<OU=VeriSign Trust Network, OU="(c) 1998 VeriSign, Inc. - For authorized use only", OU=Class 2 Public Primary Certification Authority - G2, O="VeriSign, Inc.",
    C=US>
    <OU=VeriSign Trust Network, OU="(c) 1998 VeriSign, Inc. - For authorized use onl
    y", OU=Class 1 Public Primary Certification Authority - G2, O="VeriSign, Inc.",
    C=US>
    *** ServerHelloDone
    main, WRITE: TLSv1 Handshake, length = 7383
    main, READ: TLSv1 Handshake, length = 3784
    *** Certificate chain
    chain [0] = [
    Version: V3
      Subject: CN=realAnonym (client certificate)Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 1024 bits
    modulus: 127355714484211456591612779667470666909980708602501730899657524388577
    49850208930275081977822300971032883864332221450883863390126466833031349667099122
    38288059447802849568096837640845268449147677304455823253593898716430967402259872
    25271396467992796337646786345774935629264123070013042903682567551911526037603651
    public exponent: 65537
    Validity: [From: Fri Nov 18 00:00:00 CET 2005,
                   To: Fri Nov 03 12:04:28 CET 2006]
    Issuer: C=BE, L=Leuven, O=KUL, OU=JurgenAgten, CN=ps (Clent certificate issuer) SerialNumber: [    0107a404 7764]
    Certificate Extensions: 3
    [1]: ObjectId: 2.1.2.3.102 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 02 31 00 ..1.
    [2]: ObjectId: 2.1.2.3.101 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 1D 31 1B 30 19 13 02 4C 64 02 02 03 E8 13 06 ..1.0...Ld......
    0010: 61 7A 65 72 74 79 13 07 41 72 62 69 74 65 72 azerty..Arbiter
    [3]: ObjectId: 2.1.2.3.100 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 82 09 F7 30 82 09 F3 03 82 09 6B 00 AC ED 00 ....0......k....
    0010: 05 73 72 00 19 6A 61 76 61 78 2E 63 72 79 70 74 .sr..javax.crypt
    0020: 6F 2E 53 65 61 6C 65 64 4F 62 6A 65 63 74 3E 36 o.SealedObject>6
    0030: 3D A6 C3 B7 54 70 02 00 04 5B 00 0D 65 6E 63 6F =...Tp...[..enco
    0040: 64 65 64 50 61 72 61 6D 73 74 00 02 5B 42 5B 00 dedParamst..[B[. .
    09D0: C8 18 22 75 E9 23 56 96   9E 7E 71 C5 7B 6B 95 5B  .."u.#V...q..k.[
    09E0: DF AB 6D 0A 39 0C E3 74   F1 BA 5A 9C 50 76 0B 3E  ..m.9..t..Z.Pv.>
    09F0: 13 79 20 2E B5 B1 FC 83   76 97 A2                 .y .....v..
    Algorithm: [MD5withRSA]
    Signature:
    0000: 78 DC AF 04 6F D9 F2 54 6A 5D CB 99 4E 45 90 25 x...o..Tj]..NE.%
    0010: 8D 4B 24 17 BF BB B9 1D AB 1D 7C EF 3D F5 01 9C .K$.........=...
    0020: 49 9C 81 CC 64 0C F4 38 37 F5 BB CF 28 F7 FB 2F I...d..87...(../
    0030: 5E 91 21 E3 A1 B0 92 90 F7 DC 92 F6 A8 6C E3 78 ^.!..........l.x
    0040: 36 B7 36 B8 05 6B 17 8D C8 CF AF D2 9B F6 89 B2 6.6..k..........
    0050: 5B 20 E4 14 0B 98 1C 50 69 FC CC C1 6F 6C F0 EA [ .....Pi...ol..
    0060: 63 1E 64 71 BA 41 3D B6 23 7A 72 91 01 B4 B2 23 c.dq.A=.#zr....#
    0070: 40 2D 62 48 E0 84 0E FA D7 EF E1 9C F5 92 DF 42 @-bH...........B
    chain [1] = [
    Version: V1
    Subject: CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE (Client certificatechain[1] the CA) Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 1024 bits
    modulus: 117566584630083419996551735329369567910739541932314407531248741596590
    25394436071793849489119529408325801928292164157908793562030900052755912331352764
    88920380150146179015561996002426862508085279249965768014151302583170908492349232
    49673303864165396475282399840755746956422674084689146502252850565325504345529883
    public exponent: 65537
    Validity: [From: Fri Nov 18 16:31:50 CET 2005,
                   To: Thu Feb 16 16:31:50 CET 2006]
    Issuer: CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE (is self-signed)SerialNumber: [    437df3e6]
    Algorithm: [MD5withRSA]
    Signature:
    0000: A5 0B D2 F7 C9 4A BF E5 00 C2 42 50 DF EB 33 A6 .....J....BP..3.
    0010: DB 1A 7F C5 38 DE 4A FA 23 09 5C 09 5D 68 73 CD ....8.J.#.\.]hs.
    0020: 72 B7 A4 9A 50 30 ED BE 35 28 6D 19 21 77 B6 32 r...P0..5(m.!w.2
    0030: FE 83 22 CE EF 7F F4 3E 6E 52 B0 E9 9D 14 EA 48 .."....>nR.....H
    0040: A4 0B DC 41 C2 86 D4 48 6A AD 49 46 84 10 FA 69 ...A...Hj.IF...i
    0050: 7D C6 81 0C AF BA 88 D5 C1 30 BA 1A 5A E5 D3 24 .........0..Z..$
    0060: 0A 3E 15 5A B5 99 A8 B2 32 80 85 D4 72 3F F4 60 .>.Z....2...r?.`
    0070: 18 BA 11 3A 91 35 D9 F9 CA D3 C9 AE 2F 3E 39 E1 ...:.5....../>9.
    main, SEND TLSv1 ALERT: fatal, description = certificate_unknown
    main, WRITE: TLSv1 Alert, length = 2
    main, called closeSocket()
    main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
    main, IOException in getSession(): javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

    It is not even done the first validation part on the client side ( if you have not cut the debugs).
    On both, your client and your server, you should add your CA certificate to the trust set. You can first leave the client authentication aside, and do it on the client code to be sure the client authenticates the server's certificate properly; later you can add the same functionality to your server when checking the client certificate. The mechanism provided to deploy this, is either through system property javax.net.ssl.trustStore to introduce your truststore or introcuding your own trustmanager in the codes.
    In case, you want to set it dynamically in the program code, you should consider using your extension of X509TrustManager() . Aussuming it be YourTrustManager, you go like this:
    //YourTrustManager implements javax.net.ssl.X509TrustManager
    SSLContext sslContext = SSLContext.getInstance("SSLv3");
    YouTrustManager tm = new YourTrustManager();
    TrustManager tms[] = {tm};
    sslContext.init(null, tms, null);  
    HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());Further, you might need to change the default hostname verifier on the HttpsConnection before you can establish a successful handshake with the pattern you used for your certificates.
    Read http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html in case this does not make it clear enough.

  • LDAP authentication with MD5 passwords

    Hi,
    in one of our Linux servers we have MD5 passwords stored in /etc/shadow. We want to implement pam_ldap on that machine, and move passwords to an LDAP database.
    I know it is to be done with {crypt} storage scheme.
    This works with DS 5.2 running on a Linux box, but under Solaris 8 I couldn't get it working. I know that Solaris 8 doesn't support MD5 passwords in its crypt(3) function, and I suppose Directory Server uses that. Somewhere I read that, however crypt() in Solaris 9 does support MD5.
    Can you confirm that after upgrading to Solaris 9, authentication with MD5-hashed passwords will be possible? Has anyone tried it?
    Thanks in advance,
    Kristof

    Thanks you for your reply.
    Our openldap version is openldap-2.3.39
    And all passwords are encrypted with : Base 64 encoded md5
    Below is a sample password:
    {md5}2FeO34RYzgb7xbt2pYxcpA==Thanks again for any help..

  • Electronic billing

    Dear all,
    I have a question regarding electronic billing.
    The issue is not sending invoices electronically to the customers. The issue is that some customers require as well a signed receipt attached to the electronic invoice.
    My question is if you know if there is a standard SAP solution to achieve this result
    In my opinion this can't be achieved automatically without some in house development.
    Any suggestions from your side is much appreciated.
    Kind regards

    Dear Elias,
    Thanks a lot for your answer.
    Unfortunately my issue is not with electronic billing invoicing and the signature of it.
    Let me try to explain more in detail.
    Normally when you do your billing your are using the data from the sales order to create your billing document and eventually as well the customer invoice.
    We have no issue with sending the customer invoice electronically via PDF format.
    The issue is that some customers require next to the customer invoice as well an accompanying form like a purchase order form. Probably it's an easy way then for the customer once they receive the invoice to compare it with the purchase order they send to the vendor.
    The issue is that the customer purchase purchase order form is not stored in our system. This means we have to scan the forms and store them somewhere in the system and then at time of billing we will then need to attach them to the invoice so that both the customer invoice and purchase order form are then send electronically.
    I was wondering if someone has experience with this?
    Kind regards

  • Crypting with MD5

    Hi,
    I haven't worked with cryptogaphy at all and I'm looking for a simple code that crypt with MD5.
    I've found lots of complicated codes but is there anything easier to use so that I can understand it?
    Or is there any other simple codes for crypting that I can begin with?
    Thanks/H

    Hi Hengameh,
    MD5 is a message digest algorithm, which means that you will normally not be able to decrypt the calculated digest back into the plaintext. It's a one-way-function. You may use this algorithm e.g. for stored passwords. The digested passsword is stored, if a user logs in and specifies a pwd you also calc the digest of the entered pwd and test, if both digests are equal. If so, the entered pwd is correct.
    So what do you really want to do? If want to cryp/decrypt messages you may need other algorithms e.g. Blowfish for symetric en/decryption or RSA for asymetric en/decryption.
    You might want to check out a tutorial at http://www-106.ibm.com/developerworks/views/java/tutorials.jsp
    which is called Java security, Part 1 crypto basics (you have to register first, buit it's free). In this tutorial there is a lot of sample code and some theory.
    Bye,
    Sebastian

  • My phone is telling me there is a billing problem with a precious purchase and won't let me download or update anything even though the apps in trying to download are free and updates are free. And I only have one card so I can't update my payment info

    My phone is telling me that I have a billing problem with a precious purchase but I only have one card so I can't update my payment information so I can't update anything or download anything. What should I do?

    Are you aware of any problem with a previous purchase ? If not then you should contact iTunes Support and see if they can tell you what it is (until it's sorted you won't be able to download anything from the store) : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If you go into the payment details section on your account then does it say anything about your card being declined or not accepter or if the security code needs re-entering ?

  • I tried downloading a free app and it asked for my billing information and when i entered it, it says that there was a billing problem with a previoud purchase and i have to update it. I keep updating it and it wont let me verify it and i cant get apps

    I tried downloading a free app and it asked for my billing information and when I entered it, it said that there was a billing problem with a previous purchase and I have to update it. I keep updating it and it wont let me verify it and I cant get any apps even if they are free, and I just Deleted some apps to make room for my new upate!

    The message says: "The payment method has been denied, try another method"
    I'm living in the same country and city since I was born, so I don't think the location is the problem.
    And yes, I paid with the card a meal in Burguer King today. And nothing more.

  • When going to update it says there is a billing problem with the previous purchase, I went in to fix it but it won't let me download it. How do I fix this problem?

    When going to update it says there is a billing problem with the previous purchase when I go to update it still won't let me download and all the info is correct. How do I fix this?

    You have to email iTunes Store Support about this issue now. You can get started here. Change the country in the upper right if necessary.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • I just recently purchased 3 songs from itunes not knowing that I had no money on my debit card (visa) left. My iphone wont let me update my apps and says that there was a billing problem with my last purchase. I dont know what I am supposed to do!

    I just recently purchased 3 songs from itunes not knowing that I had no money on my debit card (visa) left. My iphone wont let me update my apps and says that there was a billing problem with my last purchase. I dont know what I am supposed to do! I dont understand why it worked in the first place when it wasn't supposed to!

    There seems to be a billing problem with the iTS.  I've been trying to make purchases today (Dec 9th) too and it reports either the iTS can not process payments or it says my card was declined. I even changed the payment method to Paypal (which is never declined) and still no go.
    I don't think it is "you" but a problem at Apple.  Some popular new apps were released recently like Logic Pro and perhaps they're getting bombarded as they did when Lion was released.
    Wait a few hours and then try again.

  • I can't download from app store apps. if i try then open account and ask me shange payment type because there is a billing problem with a previous purchase. I download one game 0.99 and nothing more! help me. How can i contact with apple?

    I can't download from app store apps. if i try then open account and ask me shange payment type because there is a billing problem with a previous purchase. I download one game 0.99 and nothing more! help me. How can i contact with apple?

    Click here and ask the iTunes Store staff for assistance.
    (102938)

  • My iphone says "theres a billing problem with a previous purchase please go to purchase history to correct the problem" but when i go to it nothing happens and is not telling me nothing Now i cant download no apps

    My iphone says "theres a billing problem with a previous purchase please go to purchase history to correct the problem" but when i go to it nothing happens and is not telling me nothing Now i cant download no apps

    You can contact the iTunes Store Customer Service department at no charge using the form on their Support page (select the category and subcategory closest to the issue you're reporting and you'll find an "Email Us" button) and explain your problem to them.
    Copied from Varjak Paw in :https://discussions.apple.com/thread/2598671

  • Download or upgrade current and free apps says there's a billing problem with previous purchase previous purchase what can I do to fix it

    Every time I try to download a free app or even upgrade any of my apps for free it tells me to put my Apple ID I do that then it say there a billing problem with previous purchases. So I click continue and put in my debit card information correctly but still won't work it always declines it and says he's different payment method. what can I do it's been like that for 3 months that's the only card I have.

    Hi ..
    I replied to you here >  Download or upgrade current and free apps says there's a billing problem with previous purchase previous purchase what can I do to fix it

Maybe you are looking for

  • Open & Close Posting periods

    Hi All, I have got an  personal SAP IDES. I am doing all the transaction in this.Whenever I am doing an Posting of any GR and IV , system gives an error that Posting only allowed in 03/1998 month. I am trying to open or close the Periods from MMPV bu

  • Versions of Open Source components in 10.6 Server?

    Is there a list somewhere of the versions of Open Source components in 10.6 server (e.g. postfix, jabberd, etc.)?

  • Premiere Pro CC 2014 keeps crashing

    I got the monthly subscription just yesterday to avail the software that I need for my school. It turns out that Premiere Pro keeps crashing. Like I haven't clicked on anything yet it automatically just shuts down itself. What do I do now? I don't wa

  • Profit center drill down to furher

    Hi, we want to trace expenses and profit to lowest level possible. we set profit cenetr group, profit centers and we want further down. How to go next down to profit center in org hirarchy? Pls guide.

  • From where can I buy this book?  Oracle Backup & Recovery

    Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump http://www.rampant-books.com/book_1002_rman_backup_recovery.htm No answers on Google or Amazon