mirror of
https://github.com/hanzokms/kmip.git
synced 2026-10-30 20:33:03 +00:00
22 lines
545 B
Python
22 lines
545 B
Python
import ssl
|
|
|
|
from kmip.pie.client import ProxyKmipClient, enums
|
|
from kmip.core.enums import CryptographicAlgorithm
|
|
|
|
client = ProxyKmipClient(
|
|
hostname='localhost',
|
|
port=5696,
|
|
cert='./certificates/client-cert.pem',
|
|
key='./certificates/client-private-key.txt',
|
|
ca='./certificates/client-chain.pem',
|
|
ssl_version="PROTOCOL_SSLv23",
|
|
username='',
|
|
password='',
|
|
config='client',
|
|
config_file='./pykmip.conf',
|
|
kmip_version=enums.KMIPVersion.KMIP_1_4
|
|
)
|
|
|
|
client.open()
|
|
client.activate("c43d75e8-79e6-433b-8fe8-782e5fdf6803")
|