• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    keystore and certificate on client

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.9k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      ragflyer
      last edited by jkandasa

      I would like to get rid of the page warning of untrusted server at the login and tried to feed mycontroller a new keystore.jks:

      keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass xxxxxx -validity 360 -keysize 2048
      keytool -export -alias selfsigned -keystore keystore.jks -file root.cer
      

      Now the server won't start and I get a log message:
      java.io.IOException: Keystore was tampered with, or password was incorrect

      When I try to export the original keystore.jks I get an error on the client. Could somebody give me a hint on how to achieve what I intended?

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @ragflyer
        last edited by

        @ragflyer

        When I use this command works well. I never pass store password on command. That might be causing issue.

        keytool -genkey -alias selfsigned -keyalg RSA -keystore keystore.jks -validity 360 -keysize 2048
        
        
        1 Reply Last reply Reply Quote 0
        • R Offline
          ragflyer
          last edited by ragflyer

          OK that worked. Few more things to note for newcomers:

          • password and name of file is stored in mycontroller config file
          • Common Name (keytool asks for First and Lastname) is where you put the server/domain name or IP adress as the browser will check this against the certificate.
          • Now export, copy to client, after import on MacOS find the cert in the keyring (search IP), right click, information, trust, set SSL to always trust. Now the browser should accept it without asking you.
          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          0

          Online

          592

          Users

          529

          Topics

          3.4k

          Posts
          Copyright © 2015-2025 MyController.org | Contributors | Localization