[WSL] Corprate Certificate Chain Installation #18204
              
  
  Closed
              
          
                  
                    
                      WesselBBD
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 1 comment
-
| I'm so glad you documented this here, hopefully it will be added to the Windows section at some point, or a better (--add-certificate in machine init section)? | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
There are probably other ways of doing this by using podman's built in certificate configs but the way I've found that fixes certificate related pains in 99% of cases is installing the ca/intermediary chain into the os (be that a container or otherwise)
I am running WSL with Podman Desktop, if you are running in Linux I assume you'll have to find the instructions for your distro.
podman machine ssh.pemCAs and Intermediary certificates on your Windows machine. (/mntshould have your Windows filesystem mounted)/etc/pki/ca-trust/source/anchors/directory:sudo cp /mnt/path/to/corpo/cert-folder/* /etc/pki/ca-trust/source/anchors/sudo update-ca-trustexitpodman machine stopwsl --shutdownpodman machine startThe CAs and Intermediaries should be avaible in the root trust and podman should work transparently with your corprate environment now.
For more info you can check out
update-ca-trust(8), or the README's in the/etc/pki/ca-trustfolderBeta Was this translation helpful? Give feedback.
All reactions