I wrote functions to encrypt and decrypt shared passwords. They work great on windows but we need to be able to run them on the Macs too. Part of the voodoo is an RSA cert loaded on each machine that exposes its private key to do the encryption/decryption with. I can get the cert into Keychain but cannot find a programmatic way to get it out again.
Currently there is no corresponding Cert drive on OSX to expose certificates through. It's feature request listed on the PowerShell Github site that isn't going to get worked on until after Core 6.0 ships.
Does anyone have an idea how to use bash or something similar - or - a powershell way other than Get-Item to get into Keychain on OSX and pull a cert out?