Github user remibergsma commented on the pull request:

    https://github.com/apache/cloudstack/pull/1555#issuecomment-220767434
  
    Thanks @milamberspace! I was also looking into this and hacked around a 
bit. Your solution is nice! Now when a custom cert is used, the other CAs are 
also available and we're able to verify certificates again. Tested it, works 
fine so LGTM. 
    
    The only remaining issue I see is that I cannot connect to servers that 
require TLSv1.2. Need to look into that further and see if it's something on 
the SSVM or something on the remote server. But let's merge this as with this 
PR the situation when using a custom cert and when not using a cert are the 
same.
    
    By the way, for already running environments, you can do this to import the 
missing certs:
    
    ```
    defaultJavaKeyStoreFile=/etc/ssl/certs/java/cacerts
    defaultJavaKeyStorePass=changeit
    keyStore=/usr/local/cloud/systemvm/certs/realhostip.keystore
    storepass="vmops.com"
    
    keytool -importkeystore -srckeystore $defaultJavaKeyStoreFile -destkeystore 
$keyStore -srcstorepass $defaultJavaKeyStorePass -deststorepass $storepass
    ```
    
    Result:
    ```
    root@s-2-VM:~# keytool -importkeystore -srckeystore 
$defaultJavaKeyStoreFile -destkeystore $keyStore -srcstorepass 
$defaultJavaKeyStorePass -deststorepass $storepass
    <cut>
    Import command completed:  172 entries successfully imported, 0 entries 
failed or cancelled
    ```
    
    Ping @swill


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to