Changed certificate order for pem generation with CA files
Changed certificate order for pem generation with CA files

pem generation should always start from closer certificate
to the top of the chain. This commit fixes that.

Change-Id: I315bf4f818cc8eb606823a48843f1931e1779223
Closes-Bug: #1493421
(cherry picked from commit aba131d77619e8b00ac4b9f4a93cbe86dc570037)

yanyao/openstack-deployment,VaneCloud/openstack-ansible,yanyao/openstack-deployment,yanyao/openstack-deployment,VaneCloud/openstack-ansible,VaneCloud/openstack-ansible,yanyao/openstack-deployment