You will need a SHA-1 certificate that will be used to establish a secure connection from this workstation to O365. This can be done with a certificate from a trusted certificate authority OR a self-signed certificate. Below are instructions on how to generate a self-signed certificate in Windows Server 2016.
To create a self-signed certificate:
- Access the server where the O365 module is installed.
- Launch PowerShell and type the following commands:
# Create certificate
$cert=New-SelfSignedCertificate -Subject “CN=ArchiveShuttleOAuth” –CertStoreLocation “cert:\CurrentUser\My”-KeyExportPolicy Exportable -Provider ‘Microsoft RSA SChannel Cryptographic Provider’-NotAfter (Get-Date).AddYears(5)
$password=ConvertTo-SecureString -String “UseSecurePasswordHere”-Force –AsPlainText
# Used for authentication -> load it from disk
Export-PfxCertificate -Cert $cert –FilePath ($localPath.Path+”\ArchiveShuttleSelf.pfx”) -Password $password
# Export certificate to a .cer file:
Export-Certificate -Type CERT -Cert $cert –FilePath ($localPath.Path+”\ArchiveShuttleServer.cer”)
* Where “UseSecurePasswordHere” is the desired password of the certificate.