Skip to content

Commit d32ecc8

Browse files
committed
commented out get all cert function - future use possible
1 parent 26689b7 commit d32ecc8

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

kepconfig/ua_gateway/certificates.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,33 @@ def get_instance_certificate(server: server) -> dict:
1818
1919
:param server: instance of the `server` class
2020
21-
:return: Dict of data for the certificate requested
21+
:return: Dict of properties for the certificate requested
2222
2323
:raises KepHTTPError: If urllib provides an HTTPError
2424
:raises KepURLError: If urllib provides an URLError
2525
'''
2626
r = server._config_get(server.url + _create_url_cert(_INTER_TYPE.CERTS, INSTANCE_CERTIFICATE))
2727
return r.payload
2828

29-
def get_all_certificates(server: server, *, options: dict = None) -> list:
30-
'''Returns list of all UAG instance certificate objects and their properties in the UAG certificate store.
31-
These are UAG instance certificates that are used by UAG for trust purposes in the UA security model.
29+
# def get_all_certificates(server: server, *, options: dict = None) -> list:
30+
# TODO: Implement if/when multiple instance certificates can be configured.
31+
# '''Returns list of all UAG instance certificate objects and their properties in the UAG certificate store.
32+
# These are UAG instance certificates that are used by UAG for trust purposes in the UA security model.
3233

33-
:param server: instance of the `server` class
34-
:param options: *(optional)* Dict of parameters to filter, sort or pagenate the list of certificates. Options are `filter`,
35-
`sortOrder`, `sortProperty`, `pageNumber`, and `pageSize`
34+
# :param server: instance of the `server` class
35+
# :param options: *(optional)* Dict of parameters to filter, sort or pagenate the list of certificates. Options are `filter`,
36+
# `sortOrder`, `sortProperty`, `pageNumber`, and `pageSize`
3637

37-
:return: List of data for all certificates in Kepware server UAG server endpoint certificate store
38+
# :return: List of data for all certificates in Kepware server UAG server endpoint certificate store
3839

39-
:raises KepHTTPError: If urllib provides an HTTPError
40-
:raises KepURLError: If urllib provides an URLError
41-
'''
42-
r = server._config_get(server.url + _create_url_cert(_INTER_TYPE.CERTS), params= options)
43-
return r.payload
40+
# :raises KepHTTPError: If urllib provides an HTTPError
41+
# :raises KepURLError: If urllib provides an URLError
42+
# '''
43+
# r = server._config_get(server.url + _create_url_cert(_INTER_TYPE.CERTS), params= options)
44+
# return r.payload
4445

45-
def reissue_instance_certificate(server: server) -> bool:
46-
'''Deletes and reissues the UAG instance certificate object in the UAG certificate store.
46+
def reissue_self_signed_instance_certificate(server: server) -> bool:
47+
'''Deletes and reissues a self-signed UAG instance certificate object in the UAG certificate store.
4748
This is the UAG instance certificate that are used by UAG for trust purposes in the UA security model.
4849
4950
:param server: instance of the `server` class

0 commit comments

Comments
 (0)