Question:
I am having a problem loading a .cer file that contains the SSL certificate for my web site. I think that the issue is windows security not allowing access to the file. I have tried to access the file from a network share and local drive.
To cross validate I have tried to open the file with CKFileAccess. I even copied the file name from file explorer to make sure there are no typos on my part.
Thanks
FileAccess:
'ASP Classic Set oFA = Server.CreateObject("Chilkat.FileAccess")The Error:
Response.Write oFA.ReadEntireTextFile ("C:ecerts_insurancevisions_com.cer", "UTF-8") Response.Write oFA.LastErrorHTML Response.End
ReadEntireTextFile:DllDate: Apr 17 2012 UnlockPrefix: NONE Username: BUTCHER:IUSR_INSVISIONS-1 Architecture: Little Endian; 32-bit Language: ActiveX loadFileAnsi: openForReadWin32: Failed to open file (2) localFilePath: C:\ecerts_insurancevisions_com.cer currentWorkingDirectory: c:\windows\system32\inetsrv osErrorInfo: The system cannot find the file specified. localWindowsFilePath: C:\ecerts_insurancevisions_com.cer
ckCert
Set oCert = Server.CreateObject("Chilkat.Cert") Response.Write oCert.LoadFromFile("C:ecerts_insurancevisions_com.cer") Response.Write oCert.LastErrorHtmlResponse.End
The Error
ChilkatLog:LoadFromFile: DllDate: Apr 17 2012 UnlockPrefix: NONE Username: BUTCHER:IUSR_INSVISIONS-1 Architecture: Little Endian; 32-bit Language: ActiveX filename: C:\ecerts_insurancevisions_com.cer loadFileAnsi: openForReadWin32: Failed to open file (2) localFilePath: C:\ecerts_insurancevisions_com.cer currentWorkingDirectory: c:\windows\system32\inetsrv osErrorInfo: The system cannot find the file specified. localWindowsFilePath: C:\ecerts_insurancevisions_com.cer Failed.</pre>
Your code is running on the web server. Is the screen capture (above) a picture of the files on the web server, or a picture of the files on the client-side computer where the browser is running?