Paypal certificate error. PEM_read_bio:no start line - paypal

I need help. I'm trying to update a certificate used for paypal but I'm getting an error (see below).
I am following the steps provided by paypal seen here: https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_encryptedwebpayments#id08A3I0P20E9.
Here is the error:
PHP Exception
A PHP exception has occured!
Could not sign data: error:0906D06C:PEM routines:PEM_read_bio:no start line
Please check your configuration.
I have done this successfully in the past on the same server following the same steps. I have no idea whats going on. Does this mean anything to anyone?

Figured it out. The path to the certificate was invalid and the error was because the cert file could not be found.
It took me forever to figure this out because I was simply updating an existing certificate that had expired so all I was doing was replacing the file. The cert file I was replacing was named my-pubcert.pem which worked fine for a few years but for whatever reason it wasn't working now. All I did was rename the file to something else and it worked.
Pretty dumb, no idea why that occurred and frustrated that I wasted so much time trying to figure out such a simple thing. Hopefully this helps someone in the future.

Related

How to remain running status of zopectl and plone?

Last week my lab's power outage occurred and the web server went out.
And after then, my webpage doesn't work anymore. My webpage is using plone and zope.
So I first went to the directory /Plone/zinstance/bin
typed ./instance
then did zopectl start
then I typed ./plonectl start.
But the problem is the following : everytime I start zopectl and plonectl, the daemon process soon died.
The command line is like this.
I don't know what is the problem and what should I do. Anyone who knows well about plone and zopectl please help me.
Try ./instance fg. If you have an error it will be displayed in the console.
(fg - means running it in the foreground)

gsutil Failure: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I am getting the below error message while trying to access my google cloud storage from one of my Google Compute Engine instance using gsutil command. Below is the command and error message.
Command:
gsutil ls gs://my-storage-bucket
Error message:
Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config").
Failure: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.
I also tried authenticating the SDK using gcloud auth login and gsutil config and was also able to generate authorization code from the link generated after running the command gsutil config. The command again exited with the same error message. I did not get any solution even after searching for hours. The command was working fine few days before and it is not throwing any error in my local machine and other instances. Please help me out.
Are you using an old version of gsutil? There have been a lot of upgrades in the past few versions to the libraries that gsutil depends on for handling HTTP requests. I've seen ~5 mentions of this error in the past couple weeks, and nearly all of them have been fixed by updating gsutil.
However, if it's not possible for you to update gsutil, check for any recent updates your system's OpenSSL package. I've seen one person mention that this happened after moving from 1.0.1 to 1.0.2, and that moving back to 1.0.1 made the error stop appearing. However, I'd generally not advise downgrading a security library, and would suggest trying all reasonable alternatives before resorting to that.
I know, it's been late to answer here.
But I have faced such situation and it got fixed by upgrading the gcloud.
Here is the link of my blog post, hope it helps.
https://easyonror.wordpress.com/2018/10/24/anexperience-with-fixing-gsutil/

LetsEncrypt expiration certificate date issue

I am using Let’s encrypt on my production server to handle SSL certificate.
My website certificate will expire next week so I regenerated it using the letsencrypt-auto renew command (I didn’t set cron task yet)
The last log I get is 2016-08-20 17:12:20,305:DEBUG:certbot.renewal:no renewal failures which mean certificate has been successfully regenerated
But when I go back to my website and check the certificate properties it still says that it will expire next week.
So:
Does Let’s Encrypt wait the last day of certificate to update its new expiration in browser ?
Did my new certificate is not working properly which explain browser still give me next week as expiration ?
Can someone help me to clarify the way certificates expiration date works ?
Thanks for your help !
Thanks to Let's Encrypt community, I have been able to figured out what was wrong: I just needed to reload my Nginx server and it updated the expiration time for certificate !
I'll just follow up here with a bit more information, for those who are looking at this question for answers.
If you have the renew running in crontab, and you have this issue, you can specify command option: --post-hook 'some command'. And that 'some command' should be the shell command necessary to reload your web server.
Though coming late, might be useful to someone.
Even after restarting apache I still had the issue. A full machine reboot solved it for me. This will be useful only if you have full control of the server machine though.

Unable to connect to update server when installing

I downloaded the installer and run it, but I get a message telling me to check my internet connection. My connection works fine, but I suspect there might be a proxy problem. Does anybody know how to remedy this?
I had this issue, but today when I started the installer (the same installer I downloaded two days ago) and there was no error message. I think the problem was caused by the smarface.io server(s).
Thus, when you get this error message while installing smartface:
"Unable to connect to update server. Please check you internet connection and try again. #1"
Just wait for a day or two and start the installer again. The error message will disappear!
I have a code improvement suggestion for smartface.io:
I hope the error message never occurs in the future, but if it does you should correct the spelling: the word "you" in the error message is incorrect. It should be "your".

System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security

I am trying to install an application named: "SQLScheduler" from here: http://www.lazycoding.com/products.aspx
But when I install the service I get this error :
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security
any help?
thanks
I know this isn't an answer to the question itself, but stackoverflow won't let me comment on others' answers yet, and I wanted this information in here because it will be useful to people who may have found this post like I did, searching for this error.
The reason the BCL is throwing a Security Exception instead of a UnauthorizedAccessException is because what the non-admin security level is insufficient for is writing to the Application Event log, not for the installation in general.
And sorry this won't help you with your problem, Sherif, as there are clearly other issues when you're installing it even as Admin. I recommend trying Nicole's follow-up suggestion to contact the tool's provider.
If this is happening during installation, you probably need to install as an admin user. (The wrong exception type is being thrown by the BCL in this case. It should be an UnauthorizedAccessException instead of a SecurityException.)
I know I am late to the party here, but I had this same error and found your message.
I received it while trying to install my service via the InstallUtil program. My solution was to run the command prompt with "Run As Administrator" and that did the trick.
Hope this helps someone.