Snapshots/DR are failing with Exception urlopen error Errno 1 ssl.c 510 error 0407006A

Snapshots or DR are failing with "Exception: <urlopen error [Errno 1] _ssl.c:510: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01>"

Sometimes snapshots/DR may start failing, while the local CPM Server's logs contain these repeated errors:

ERROR:  get_agent_tasks(.\common\agentapi_requests.py:374)  failed calling url https://127.0.0.1/agentapi/agent_tasks/. Exception: <urlopen error [Errno 1] _ssl.c:510: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01>

Option 1:
This is most likely an issue with Apache/MySQL starving for resources, please consider increasing the size of your CPM instance and especially switching to an IO1 volume type for the CPMDATA volume : https://support.n2ws.com/portal/kb/articles/recommended-instance-sizes-for-cpm-server-instances

Option 2:
This problem may be caused by a number of Apache's file descriptors used, that exceeds Ubuntu's default limit value.
In order to prevent this problem from re-occurring, please edit (as root ) the file /etc/apache2/envvars.
 
You need to un-comment this line (delete the first #):
#APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
 
After saving the file, please restart Apache:
sudo service apache2 restart

If this doesn't help, please try a higher limit, e.g. 100000.