-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building in Windows 7 - CA Certificate Installation Issue #168
Comments
Hi, Can you please let me know what is your PowerShell version. You can use the following command |
@asachin96, thanks for your reply. Windows 7 - PS version is 2. |
Import-Certificate is available from PowerShell 3. Yes, upgrading PowerShell should solve this issue. |
I actually didn't try to upgrade when I saw this earlier, and it made sense: But I will try now. I'll let you know. Thank you. |
I tried version 3, then 4. No luck. "Module tied to the OS version instead WMF" in the link above makes more sense now. |
I see. I'll check and get back to you. |
Ok, I have solved this by installing the CA certificate (%userprofile%/.office-addin-dev-certs/ca.crt) into the Trusted Root Certificate Authorities store. I don't think PowerShell will help for Windows 7, unless the install.js script is perhaps updated to use certutil in Windows 7. Not sure, but I wanted to send this workaround for users trying to use Excel Custom Functions in Windows 7. |
I'm glad you were able to manually install the CA certificate. @asachin96 is looking into a way to use an alternate Powershell script on Windows 7 to that it will work in the future. |
This issue will be tracked here: OfficeDev/Office-Addin-Scripts#151 |
Building works without problems in Windows 10, however there is a certificate installation issue in Windows 7 Home Premium.
"The term Import-Certificate is not recognized as the name of a cmdlet..."
I do understand Import-Certificate is not a Windows 7 powershell cmdlet.
I tried to install the generated CA certificate manually, however build script still regenerates it and tries to install with powershell, and cannot pass that step that avoids testing Excel Custom Functions in Windows 7.
I disabled certificate installation in node_modules\office-addin-dev-certs\lib\install.js, and yes it skipped the installation, but add-in loading failed, likely due to missing certification.
Can't we use Windows 7 for testing Excel Custom Functions with Node.js (other than Trusted Add-in Catalog), or is there a workaround that I am probably missing?
The text was updated successfully, but these errors were encountered: