#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    4
    Rep Power
    0

    Php with keystore security


    Hi ,
    Here i am trying to use a secured web service i need to use java keystore security certificate . can any body help me in encryption and decryption using Key store. it is very urgent .
    i need to encrypt the whole soap Body and envelope .
    Thanks in Advance .
  2. #2
  3. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400
    Are you sure you're talking about PHP? Because KeyStore is a Java thing.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    4
    Rep Power
    0
    Thanks for your reply . thats what i am asking how to implement keystore security in PHP . i need use keystore certificate .
  6. #4
  7. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400
    Well you certainly can't use the KeyStore, that's for sure.

    Get the certificate into a file. How? I don't know. But you need it as a file. And in some common format like .cer or .crt.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    4
    Rep Power
    0
    Thanks .How to use cert file for encryption and decryption here i am not able get the public key from the file . is it private key or public key what we get from the key store certificate .
  10. #6
  11. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400
    We can't tell you that. You're the only one who knows WTF you're talking about. We don't know what the web service is. We don't know what encryption/decryption you need. We don't know whether it's actual encryption or whether it's just a certificate like for communication over SSL. We don't know.

    You need to do some research before we can help you. Some sample Java code might suffice but we can't tell you something we don't know about.
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    4
    Rep Power
    0
    Keystore type: JKS
    Keystore provider: SUN

    Your keystore contains 2 entries

    Alias name: bsnb
    Creation date: Nov 26, 2013
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Certificate[1]:
    Owner: CN=bsnb, OU=bsnb, O=bsnb
    Issuer: CN=bsnb, OU=bsnb, O=bsnb
    Serial number: 52941541
    Valid from: Tue Nov 26 11:28:01 GMT+08:00 2013 until: Wed Nov 26 11:28:01 GMT+08
    :00 2014
    Certificate fingerprints:
    MD5: 8D:41:A5:2C:C1:F1:A4:FC:EA:907:55:C8:04:B0:C3
    SHA1: E9:E3:24:58:4E:3C:E6:A9:A1:99:46:F1:FC:44:95:34:BB:26:C0:F5
    Signature algorithm name: SHA256withRSA
    Version: 3


    *******************************************
    *******************************************


    Alias name: esmas
    Creation date: Nov 26, 2013
    Entry type: trustedCertEntry

    Owner: CN=sspn, OU=sspn, O=sspn
    Issuer: CN=sspn, OU=sspn, O=sspn
    Serial number: 52940c4e
    Valid from: Tue Nov 26 10:49:50 GMT+08:00 2013 until: Wed Nov 26 10:49:50 GMT+08
    :00 2014
    Certificate fingerprints:
    MD5: 03:82:23:B7:1B:97:67:31:554:30:77:7E:A5:7D:6B
    SHA1: E6:28:EDF:C4:59:5A:9B:73:90:23:BD:F8:80:60:B1:70:88:89B
    Signature algorithm name: SHA256withRSA
    Version: 3


    *******************************************
    *******************************************
    we genrated keystore and exported into one certificate and later imported server certificate into it .
    this is the keystore we are using we exported our keystore into bsnb.cert and we imported server keystore into esmas.cert now i need to send encrypted data using bsnb.cert

IMN logo majestic logo threadwatch logo seochat tools logo