title: Importing multiple CA in truststore with same CN name but different alias
body: <p>In one of my servers I have imported 2 CA's having the same CN name with different aliases in the trustore.</p>
  
  <p>The above is required because the signature of the CA got changed, so in order to support both old and new device SSL communication I need to
  have both CA's in my trustore</p>
  
  <p>Now the problem is only one of the devices with the old CA is passing the <strong>SSL</strong> communication.</p>
  
  <p>When I add both the CA's in cacerts file then my new device is passing the ssl communication and old one is failing (because it is not validating it against other CA).</p>
  
  <p>So now I want to know why we have 2 different behaviors when CA's are imported in truststore vs cacerts file.</p>
  
  <p>Also how can I handle this situation and make it work. (I do not have any option to generate a new CA with different CN name so that option is not in scope)</p>