A similar program written in go is available here: Minio Go Client
Keycloak over SSL
If you are using keycloak over SSL you'll need to copy the CA certifcate for keycloak in to the /root/.minio/certs/CAs directory.
This is required so Minio can read the keycloak endpoints over https.
You can create a secret to store and CA and then mount it in the /root/.minio/certs/CAs directory
kubectl create secret generic keycloak-ca-secret --from-file=keycloak-ca.crt=rootCA.crt
Minio SSE (Server Side Encryption)