Refactor Openssl certificate Subject Alternative Name logic.
Refactor Openssl certificate Subject Alternative Name logic.

Review: https://reviews.apache.org/r/35853

andschwa/mesos,yuquanshan/customizedMesos,andschwa/mesos,dforsyth/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,andschwa/mesos,gsantovena/mesos,abudnik/mesos,reneploetz/mesos,yuquanshan/customizedMesos,zmalik/mesos,gsantovena/mesos,chhsia0/mesos,craimbert/mesos,gsantovena/mesos,kaysoky/mesos,Gilbert88/mesos,kaysoky/mesos,verizonlabs/mesos,reneploetz/mesos,andschwa/mesos,abudnik/mesos,asamerh4/mesos,reneploetz/mesos,abudnik/mesos,kaysoky/mesos,craimbert/mesos,Gilbert88/mesos,kaysoky/mesos,verizonlabs/mesos,jpeach/mesos,dforsyth/mesos,chhsia0/mesos,reneploetz/mesos,reneploetz/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,craimbert/mesos,asamerh4/mesos,yuquanshan/customizedMesos,andschwa/mesos,asamerh4/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,zmalik/mesos,neilconway/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,chhsia0/mesos,craimbert/mesos,yuquanshan/customizedMesos,neilconway/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,jpeach/mesos,andschwa/mesos,jpeach/mesos,Aman-Jain-14/customizedMesos,andschwa/mesos,gsantovena/mesos,neilconway/mesos,Gilbert88/mesos,asamerh4/mesos,Gilbert88/mesos,neilconway/mesos,verizonlabs/mesos,asamerh4/mesos,Gilbert88/mesos,verizonlabs/mesos,craimbert/mesos,neilconway/mesos,abudnik/mesos,kaysoky/mesos,verizonlabs/mesos,abudnik/mesos,jpeach/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,craimbert/mesos,zmalik/mesos,Gilbert88/mesos,reneploetz/mesos,dforsyth/mesos,Aman-Jain-14/customizedMesos,zmalik/mesos,abudnik/mesos,chhsia0/mesos,chhsia0/mesos,gsantovena/mesos,Gilbert88/mesos,neilconway/mesos,reneploetz/mesos,yuquanshan/customizedMesos,neilconway/mesos,jpeach/mesos,dforsyth/mesos,kaysoky/mesos,gsantovena/mesos,jpeach/mesos,dforsyth/mesos,kaysoky/mesos,jpeach/mesos,chhsia0/mesos,zmalik/mesos,dforsyth/mesos,asamerh4/mesos,gsantovena/mesos