1.Open a Powershell command prompt and enter the following commands:
a.$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
b.$cert.Import("<path to your .CER/.CRT/.PEM file>")
c.$rawCert = $cert.GetRawCertData()
d.$base64Cert = [System.Convert]::ToBase64String($rawCert)
e.$rawCertHash = $cert.GetCertHash()
f.$base64CertHash = [System.Convert]::ToBase64String($rawCertHash)
g.$guid = [System.Guid]::NewGuid().ToString()
h.Write-Host $base64Cert
i.Take note of the value printed out, as this is your value for Azure Active Directory; note that this is a large character string, and care should be taken to delete any line breaks in between characters
i.Write-Host $base64CertHash
i.Take note of the value printed out, as this is your customKeyIdentifier for Azure Active Directory, as well as your Thumbprint for the SharePoint Online integration
j.Write-Host $guid
i.Take note of the value printed out, as this is your keyId for Azure Active Directory
Note: None of these values are confidential and may be stored safely onto the storage of your choice.
This section assumes you have acquired a Base-64 encoded PKCS #8 private key, which is a .PK8 file. Due to its sensitive content, if this file has been supplied for the sole purpose of authorizing TeamConnect to communicate with SharePoint Online, it is strongly recommended after setting up your integration(s) that you either move this file to a secure location or remove it from your system entirely. Once these contents have been supplied to TeamConnect through the DMS Connector page, they will be obfuscated in the user interface upon entry and encrypted within the database for secure storage. If you are in a development environment or did not acquire such a file through your certificate authority of choice, you may create one using the instructions provided in the Self-Signed Public Certificates for DMS documentation.
Extracting .PK8 file information
1.Open the file In a text editor, such as Notepad
2.In between the lines that say "-----BEGIN PRIVATE KEY-----" and "-----END PRIVATE KEY-----", copy the contents.
a.Take note of the value printed out, as this is your Key for the SharePoint Online integration; note that this is a large character string, and care should be taken to delete any line breaks in between characters