props.put(IMAGENAME,
azureTemplate.getImageName().equals(AzureStackUtil.IMAGE_NAME) ? po.getOsImageName() : azureTemplate.getImageName());
props.put(IMAGESTOREURI, buildimageStoreUri(po.getCommonName(), vmName));
props.put(HOSTNAME, vmName);
props.put(USERNAME, DEFAULT_USER_NAME);
X509Certificate sshCert = null;
try {
sshCert = createX509Certificate(azureCredential, po.getEmailAsFolder());
} catch (FileNotFoundException e) {
throw new StackCreationFailureException(e);
} catch (CertificateException e) {
throw new StackCreationFailureException(e);
}
try {
props.put(SSHPUBLICKEYFINGERPRINT, sshCert.getSha1Fingerprint().toUpperCase());
} catch (CertificateEncodingException e) {
throw new StackCreationFailureException(e);
} catch (NoSuchAlgorithmException e) {
throw new StackCreationFailureException(e);
}