Mercury2 Hardware Manager  1.0dev
The hardware manager component of the Mercury2 ground station suite.
 All Classes Namespaces Functions Variables Pages
hwm.network.security.verification Namespace Reference

Contains functions for verifying user authorization credentials. More...

Functions

def create_tls_context_factory
 Creates and returns a new ssl.ContextFactory used to create TLS contexts for various ground station connections. More...
 

Detailed Description

Contains functions for verifying user authorization credentials.

This module functions for authenticating users based on their provided SSL certificate.

Function Documentation

def hwm.network.security.verification.create_tls_context_factory ( )

Creates and returns a new ssl.ContextFactory used to create TLS contexts for various ground station connections.

This method initializes a TLS context factory that uses the HWM instance's private key and public certificate (specified by 'tls-private-key-location' and 'tls-public-cert-location', respectively). These files uniquely identify the HWM instance and are typically generated and signed by the user interface. In addition, it also initializes the TLS context factory with the ground station's public CA certificate which is used to verify the integrity of user certificates.

Returns
Returns an ssl.ContextFactory for use by SSL listeners.