Skip to content
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

PEM file not applied #219

Open
trevorblades opened this issue Jul 21, 2016 · 20 comments
Open

PEM file not applied #219

trevorblades opened this issue Jul 21, 2016 · 20 comments

Comments

@trevorblades
Copy link

trevorblades commented Jul 21, 2016

When I run surge ssl with my certificate, I get a non-descriptive error saying:

Error - something went wrong. the pem file was not applied

I was able to successfully apply SSL certs to my domains a few months ago, but now it's not working. Any thoughts on what might be going on here?

This was also recently reported on Twitter https://twitter.com/davidweisss/status/755553830129897473

@stuartbreckenridge
Copy link

Also getting this error. There doesn't appear to be a way around it as I've tried with certs from several CAs.

@trevorblades did you manage to resolve?

@trevorblades
Copy link
Author

trevorblades commented Aug 23, 2016

@stuartbreckenridge I didn't. I ended up switching over to AWS 😞

@stuartbreckenridge
Copy link

@trevorblades Same...I moved to netlify.

@sintaxi
Copy link
Owner

sintaxi commented Aug 23, 2016

Sorry you both had issues. This is usually due to the order of your certs in your PEM file.

@stuartbreckenridge
Copy link

My PEM file was:

My certificate
Rapid SSL Intermediate
Private Key

This failed, but so did all (5) other combinations possible.

On 24 Aug 2016, at 6:31 am, Brock Whitten <notifications@github.commailto:notifications@github.com> wrote:

Sorry you both had issues. This is usually due to the order of your certs in your PEM file.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/219#issuecomment-241901038, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGuF_JP_Y1U9m0QVy1oRNmN_H50WsCehks5qi3SwgaJpZM4JRZwe.

@sintaxi
Copy link
Owner

sintaxi commented Aug 24, 2016

@stuartbreckenridge what you did seems right. There must be something else causing the error. We will dig further into this. Thanks for following up and reporting the issue.

@famulus
Copy link

famulus commented Sep 2, 2016

I'm getting the same issue

@calvinbrewer
Copy link

calvinbrewer commented Oct 27, 2016

+1 Same error here.

PEM file:

Certificate
Private key

@jmspswny
Copy link

Same error here. Have the problem with a number of domains, and all permutations of .key and .crt files within the .pem

@tigarcia
Copy link

I had a similar problem while using let's encrypt. I found this digital ocean let's encrypt tutorial helpful. Surge uses digital ocean, so any info on how to get your cert on digital ocean will probably apply to surge.

@matteodem
Copy link

what's the status on this issue?

@srobertson421
Copy link

I also had this issue, am using SSLMate cert. My problem was that I had the order wrong when I concatenated. The order should be:

cat mydomain.crt mydomain.chain.crt mydomain.key > surge.pem

This worked for me, basically the ".chain" crt was an intermediary cert so start with your main domain cert, then do each intermediary cert, finally include your key file.

@tylerdave
Copy link

I'm having this same issue today trying to upload a new certificate to an account that already had one (and that has now expired.) It's using a LetsEncrypt cert. I've tried:

cat fullchain.pem privkey.pem > surge.pem
cat cert.pem privkey.pem > surge.pem
cat cert.pem chain.pem privkey.pem > surge.pem

In every case running the surge ssl command w/ the pem file results in:

Error - the pem file was not applied

I'm pretty sure I followed the same process for uploading the original cert so I don't know why it's failing now. It'd be nice if the error output gave some indication of what the error is and not just that there's an error.

@sintaxi
Copy link
Owner

sintaxi commented Jun 17, 2017

@tylerdave if you're able to hop into slack I can help you.

@nickFalcone
Copy link

I am having the same issue. I've tried running surge ssl and going through the prompts - resulting in Error - the pem file was not applied.

I also tried surge --pem surge.pem --domain https://mydomain.com - resulting in
Success! Project is published and running at mydomain.com

I followed the surge ssl guide and have also tried this person's guide.

@sintaxi - any advice?

@sintaxi
Copy link
Owner

sintaxi commented Aug 30, 2018

@nickFalcone can you email support@surge.sh with more details such as your domain and Certificate Authority if you have one?

@Sewdn
Copy link

Sewdn commented Sep 3, 2018

@sintaxi I'm having the same issue as @nickFalcone and contacted your support 4days ago as you suggested. I still didn't receive any feedback and my issue is not resolved.

@nickFalcone Is you issue resolved now? Thanks!

@guyjacks
Copy link

guyjacks commented Jun 5, 2019

We're having this issue with Let's Encrypt certs.

@marcelocpinheiro
Copy link

@arturojain
Copy link

Anyone found a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests