def METHOD_NAME(ansible_module):
	"""
	:id: cdd43e1f-2e99-45e7-91fb-f48d71c5faaf
	:Title: Setup SCEP enrollment.
	:Description: Setup SCEP enrollment.
	:Requirement:
	:Setup: Use the subsystems setup in ansible to run subsystem commands
	:Steps:
		1. Setup ip_address and pin in flatfile.txt
		2. Run #./mkrequest -ip 10.0.97.7 1212
		3. Run #./sscep getca -u http://pki1.example.com:20080/ca/cgi-bin/pkiclient.exe -c ca.crt
		4. Run #./sscep enroll -u http://pki1.example.com:20080/ca/cgi-bin/pkiclient.exe -c ca.crt
				  -k local.key -r local.csr -l cert.crt
	:Expected results:
		1. Certificate Enrollment should successful with sha512 fingerprint
	"""
	flatfile_cfg = '/var/lib/pki/{}/ca/conf/flatfile.txt'.format(constants.CA_INSTANCE_NAME)
	ip = ansible_module.shell("hostname -i | awk '{print $3}'")
	ip_add = list(ip.keys())[0]
	pwd = '1212'
	# Setup ip_address and pin
	ansible_module.lineinfile(path=flatfile_cfg, regexp='^#UID:',
	                          line='UID:{}'.format(ip_add))
	ansible_module.lineinfile(path=flatfile_cfg, regexp='^#PWD:',
	                          line='PWD:{}'.format(pwd))
	# Run mkrequest
	cmd = ansible_module.command('mkrequest -ip {} {}'.format(ip_add, pwd))
	time.sleep(5)
	# Run sscep getca
	ansible_module.command('sscep getca -u http://{}:{}/ca/cgi-bin/pkiclient.exe -c ca.crt'.
	                       format(constants.MASTER_HOSTNAME,
	                              constants.CA_HTTP_PORT))
	log.info('Successfully exported ca.crt with sscep')
	time.sleep(5)
	# Run sscep enroll with sha512 fingerprint
	cmd = ansible_module.command('sscep enroll -u http://{}:{}/ca/cgi-bin/pkiclient.exe '
	                             '-c ca.crt -k local.key -r local.csr -l cert.crt'.
	                             format(constants.MASTER_HOSTNAME, constants.CA_HTTP_PORT))
	for result in cmd.values():
		if result['rc'] == 0:
			assert 'pkistatus: SUCCESS' in result['stdout']
			assert 'sscep: valid response from server' in result['stdout']
			log.info('Successfully enrolled cert with {}'.format(result['cmd']))
		else:
			log.error(result['stdout'])
			log.error(result['stderr'])
			pytest.fail()
	time.sleep(5)
	# Validate the enrolled cert for fingerprint match
	cmd = ansible_module.shell('openssl x509 -in cert.crt -text -noout')
	for result in cmd.values():
		assert 'Signature Algorithm: sha512WithRSAEncryption' in result['stdout']
		log.info('Successfully matched the sha512 fingerprint')
	time.sleep(5)
	# Remove the generated cert and key
	ansible_module.shell('rm -rf local.key local.csr cert.crt ca.crt')
	log.info('Successfully removed the cert and key from server')