preload preload preload preload

Importer un certificat auto-signé dans votre JRE/JDK


Le vendredi 04 mars 2011 par madpellzo JDK/JRE 17 commentaires

Comment imorter un certifiact x509 auto-signé dans le fichier cacerts d'un JRE/JDK Sun ?

Prérequis : un JDK ou JRE installé sur le serveur.

Le fichier cacerts contient une liste d'autorités de certification (Thawte, VeriSign ...).

1) Visualiser les autorités déjà présentes dans cacerts


# /usr/local/java/bin/keytool -list -keystore cacerts
Enter keystore password: changeit

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 44 entries

Comme vous pouvez le constater le mot de passe par défaut du cacerts Sun est : changeit.

2) Importer votre certificat auto-signé

Il se trouve (en général) sous /etc/ssl/certs/moncertif.pem.

Commencer par sauvegarder le cacerts original:

# cd /usr/local/java/jre/lib/security/
# cp cacerts cacerts.original

Importation :

# /usr/local/java/bin/keytool -import -alias realmed -keystore cacerts -file /etc/ssl/certs/moncertif.pem
Enter keystore password: changeit

Vérifier qu'une nouvelle autorité se trouve dans cacerts:

# /usr/local/java/bin/keytool -list -keystore cacerts
Enter keystore password: changeit

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 45 entries

Mots clés : jdk, jre, cacerts, x509

  • Commentaires

  • Avatar Gravatar
     CHAUFFEUR PRIVE NICE
     #1 Le 23 avril 2016

    You've made some really good points there. I looked on the net to leartn more about the issue and foundd most individuals will go along with your views on this web site.

  • Avatar Gravatar
     vtc nice aeroport
     #2 Le 29 novembre 2016

    Hello i amm kavin, its my first occasion to commenting anywhere, when i
    read this paragraph i thought i could also make comment due to this sensible post.

  • Avatar Gravatar
     incrediblewishes.tumblr.com
     #3 Le 09 décembre 2017

    Every weekend i used to pay a visit this web page,
    because i wish for enjoyment, as this this site conations actually nice funny stuff
    too.

  • Avatar Gravatar
     Www.Adinsights.Net
     #4 Le 03 janvier 2018

    It's really a great and useful piece of info. I'm satisfied that you just shared this useful information with
    us. Please keep us informed like this. Thank you for sharing.

  • Avatar Gravatar
     dongorbank.com
     #5 Le 07 janvier 2018

    Do you have a spam issue on this blog; I also
    am a blogger, and I was wanting to know your situation; many of us have created some nice procedures and we are looking to exchange methods with
    others, please shoot me an e-mail if interested.

  • Avatar Gravatar
     Tarif Sewa Bus Pariwisata Murah
     #6 Le 03 mars 2018

    It's the best time to make some plans for the long run and it is time to be happy.

    I've read this publish and if I may I wish to counsel you ome attention-grabbing issues
    or tips. Perhaps you couyld write subsequent articles relating to this
    article. I want too read even more things approximately it!

  • Avatar Gravatar
     community.constantcontact.com
     #7 Le 23 mars 2018

    My spouse and I absolutely love your blog and find nearly all of your post's to be precisely what I'm looking for.

    Would you offer guest writers to write content for you?
    I wouldn't mind creating a post or elaborating on a lot of the subjects you write regarding here.

    Again, awesome blog!

  • Avatar Gravatar
     livescore 24 live En direct
     #8 Le 02 avril 2018

    І drop a comment whenever I appreciate a post on a site or I have something to add to the conversation. It is trigցered
    by the fire diѕplayed in tһe article I looked at.
    And after thіs article Importer un ⅽertificat auto-signé dans votre JRE/JDK- Mаdpellzo.
    I was actually eхcited enough to post a thoᥙght ;) I do have some qustions
    for you if it's allright. Could it be juѕt me or does it appeɑr like a fеw ⲟf these comments come across
    like coming from brain deaɗ viѕitors? :
    -P And, if you are writing at additional places, I'd like to follow everytһing nnew
    yоu hhave to post. Could you make a list the complete urlѕ of all ʏour shared pagеs
    like үour Ϝacebook page, twitter feed, or linkedin profile?

  • Avatar Gravatar
     spbo
     #9 Le 02 avril 2018

    Hello There. I discovered your weblog the use of msn. Thiss iss an extremely neaqtly
    written article. I will make sure to bookmark it and returnn to read extra of
    your useful info. Thanks for the post. I'll dedinitely
    comeback.

  • Avatar Gravatar
     bola168
     #10 Le 07 avril 2018

    I'm amazed, I must say. Seldom do I come across a blog
    that's equally educative and engaging, and let me tell you, you have hit the nail on the head.
    The issue is an issue that not enough people are speaking intelligently about.
    Now i'm very happy I stumbled across this during my hunt for something regarding this.

  • Avatar Gravatar
     Daftar Judi Poker Online
     #11 Le 10 avril 2018

    Hi, i think that i saw you visited my web site so i came to
    “return the favor”.I'm attemptinng to
    find things to enhance my site!I suppose its ok to use a few of your ideas!!

  • Avatar Gravatar
     Livescore Terbaru
     #12 Le 01 mai 2018

    Ӏ wass гecommended this web site Ьy my cousin. I'm not sure whether thіѕ post is written by him as nobody else
    know such detailed abоut my trouble. You are amazing!
    Thanks!

  • Avatar Gravatar
     Livescore terbaru
     #13 Le 02 mai 2018

    Hi! Quick ԛuestion that's totally off topic. Do you know
    how to maake your site mobile friendly? My blog loοks ԝeird when viewing
    from mу iphone4. I'm tryig to find a template ᧐r plugin that might be aƄle
    to fix this problem. If you have any recommendations, please
    shагe. With thanks!

  • Avatar Gravatar
     spbo Live score
     #14 Le 03 mai 2018

    heⅼlo there and thank you for your information – I have dеfinitely pickeԀ up sometһing new from
    right here. I did however expertise a feᴡ technical ⲣoints using this site, aѕ I experienced to reload the wеb ѕite many
    times pгеvious to І could get it to lⲟad proрerlү.

    I had been wondering if yoᥙr web host is OK? Not thаt I am compⅼaining, but slugɡih loading instаnces times will somеtimes affect your placement in google and could damage your high-quality score if advertising and markеting with Adwords.

    Anyway I am aԀding thiѕ RSS tⲟ my emaiⅼ and could look out for a lot more of your respeсtive interesting
    content. Make sre you update this again soon.

  • Avatar Gravatar
     Getontopunblockedd.com
     #15 Le 20 mai 2018

    I could not refrain from commenting. Perfectly written!

  • Avatar Gravatar
     asianbookie
     #16 Le 25 mai 2018

    When someone writes ɑn aгticle he/she maintɑins the
    plan of a uszer in his/her mind that hⲟw a user cann be
    aᴡare of it. Therefore that's why thiѕ paragraph is ρerfеct.

    Thanks!

  • Avatar Gravatar
     run3unblockeddd.Com
     #17 Le 27 mai 2018

    Hi are using Wordpress for your blog platform? I'm new to the blog
    world but I'm trying to get started and set up my own. Do you require any coding knowledge to make
    your own blog? Any help would be really appreciated!

  • Ecrire un commentaire








    Quelle est la quatrième lettre du mot aqjryh ?