Skip to content

eait-itig/vcsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vcsm

Helper module for using vCenter Smartcard auth (via pivy-agent) with pyVmomi.

Installation

pip install git+https://github.com/eait-itig/vcsm

Example

import vcsm
from pyVmomi import vim

si = vcsm.getServiceInstance(
    host = 'vcenter.some.domain',
    upn = '[email protected]',
    cacert = '/etc/ssl/pivy-cert-ca.pem')

content = si.RetrieveContent()

vcsm validates certificates before presenting them to vCenter, so it needs to use the CA cert for your smartcard certs. If your smartcard CA is not in the system CA certificate store, you can provide it to vcsm as a PEM-encoded file using the cacert argument to vcsm.getServiceInstance().

About

pyvmomi smartcard auth helper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages