SSL certificate problem

1,884 views
Skip to first unread message

Ken Geter

unread,
Mar 2, 2015, 5:10:01 PM3/2/15
to shinyap...@googlegroups.com
I've been following the GETTING STARTED instructions in my shinyapps.io Dashboard, but when get to STEP 3 – AUTHORIZE ACCOUNT and do this:

shinyapps::setAccountInfo(name='myname', token='mytoken', secret='mysecret')

(with my info filled in, obviously) I get this error:

Error in function (type, msg, asError = TRUE)  : 
  SSL certificate problem: self signed certificate in certificate chain

I am behind my office firewall, but haven't had any problems thus far connecting to shinyapps. Any help or advice would be greatly appreciated.

Thanks,
Ken

Ken Geter

unread,
Mar 2, 2015, 6:03:58 PM3/2/15
to shinyap...@googlegroups.com
I figured it out. It appears the firewall is the issue. Workaround:
options(shinyapps.service_url = "http://api.shinyapps.io/v1")

Ken Geter

unread,
Mar 16, 2015, 4:55:09 PM3/16/15
to shinyap...@googlegroups.com
...and now the problem is back. When I visit http://api.shinyapps.io/vi in my browser I get {"error": "Not Found"}

Andy Kipp

unread,
Mar 16, 2015, 5:00:36 PM3/16/15
to Ken Geter, shinyap...@googlegroups.com
Ken,

What is the problem you are seeing? 

-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/0bb4385f-ca69-47be-aad6-2372428e6e4f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ken Geter

unread,
Mar 16, 2015, 6:57:29 PM3/16/15
to shinyap...@googlegroups.com, kget...@gmail.com
Andy,

When I try to Publish my app I get this:

Preparing to deploy application...Timing stopped at: 0.26 0.06 0.49 
Error in function (type, msg, asError = TRUE)  : 
  SSL certificate problem: self signed certificate in certificate chain
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

It was working last week with this option set:
> getOption("shinyapps.service_url")

That service_url appears to no longer be working. Thanks for any help or advice.

-Ken

Andy Kipp

unread,
Mar 17, 2015, 9:31:04 AM3/17/15
to Ken Geter, shinyap...@googlegroups.com
Is the option still set?

getOption('shinyapps.service_url')

Ken Geter

unread,
Mar 17, 2015, 10:10:19 AM3/17/15
to shinyap...@googlegroups.com, kget...@gmail.com
Andy,

I've tried both with and without this option set and get the same result when I Publish. If I don't have it set, I get the same error when I do setAccountInfo. If it is set, setAccountInfo runs without error, but I still can't publish.

Thanks again,
Ken

Andy Kipp

unread,
Mar 17, 2015, 10:12:55 AM3/17/15
to Ken Geter, shinyap...@googlegroups.com
Ken, 

Can you try:

options(shinyapps.http.trace = TRUE)
options(shinyapps.service_url = "http://api.shinyapps.io/v1")

And then deployApp()

Please send me the output.

Thanks
-Andy

Ken Geter

unread,
Mar 17, 2015, 12:47:00 PM3/17/15
to shinyap...@googlegroups.com, kget...@gmail.com
Oh, this is embarrassing: I was using the menu Tools > ShinyApps > Publish App command and getting this error. When I use deployApp() I have no problem as long as I have shinyapps.service_url = "http://api.shinyapps.io/v1". Thanks for suggesting deployApp().
Happy St. Patrick's Day,
Ken

Andy Kipp

unread,
Mar 17, 2015, 12:52:46 PM3/17/15
to Ken Geter, shinyap...@googlegroups.com
Ken,

It should work either way. I'd like get to the bottom of this. Can you help me by running:

packageDescription('shinyapps')
packageDescription('rsconnect')

Thanks
-Andy 

Ken Geter

unread,
Mar 17, 2015, 12:59:29 PM3/17/15
to shinyap...@googlegroups.com, kget...@gmail.com
Ah, perhaps that is part of it, I don't have rsconnect installed. I tried to install it but got an error about it not being available for R 3.1.2:

> packageDescription('shinyapps')
Package: shinyapps
Type: Package
Title: Interface to ShinyApps
Version: 0.3.63
Date: 2013-10-03
Author: JJ Allaire
Maintainer: JJ Allaire <j...@rstudio.com>
Description: Interface for deploying shiny applications to the
       ShinyApps service
Depends: R (>= 3.0.0)
Imports: digest, RCurl, RJSONIO
Suggests: scrypt, knitr, testthat
License: GPL-2
RemoteType: github
RemoteHost: api.github.com
RemoteRepo: shinyapps
RemoteUsername: rstudio
RemoteRef: master
RemoteSha: eab6b6997bc0a20f08d9541b307690a21cc15746
GithubRepo: shinyapps
GithubUsername: rstudio
GithubRef: master
GithubSHA1: eab6b6997bc0a20f08d9541b307690a21cc15746
Built: R 3.1.2; ; 2015-03-02 22:29:49 UTC; windows

-- File: C:/Program Files/R/R-3.1.2/library/shinyapps/Meta/package.rds 
> packageDescription('rsconnect')
[1] NA
Warning message:
In packageDescription("rsconnect") : no package 'rsconnect' was found
> install.packages('rsconnect')
Warning in install.packages :
  package ‘rsconnect’ is not available (for R version 3.1.2)

Andy Kipp

unread,
Mar 17, 2015, 2:04:23 PM3/17/15
to Ken Geter, shinyap...@googlegroups.com
It's not a problem if rsconnect is not installed. I was curious to see if it was.

What version of RStudio are you running?

Ken Geter

unread,
Mar 17, 2015, 2:16:39 PM3/17/15
to shinyap...@googlegroups.com, kget...@gmail.com
RStudio Version 0.98.1102

SK

unread,
May 15, 2015, 8:28:37 AM5/15/15
to shinyap...@googlegroups.com, kget...@gmail.com
Sorry - I'm new to G Groups policies. Bu tI heve the similar problem and just don't know where to look for help
I'm trying to register my account from work (yes, with proxy / firewal). What I've done so far:

1              Installed a package “devtools” - successfully

                                                install.packages('devtools')

2              Tried to install Shinyapps  - with an error

                       > devtools::install_github('rstudio/shinyapps')

                       Downloading github repo rstudio/shinyapps@master

                       Error in function (type, msg, asError = TRUE)  :

                       Failed to connect to api.github.com port 443: Connection refused

3              Fixed it with proxy settings

                                                set_config(use_proxy(*****.*****", 8080))

4              Tried to authorize my account - with an error - proxy settings didn't help in this case

                       > shinyapps::setAccountInfo(name='sergei', 
                       +                           token='***********************', 
                       +                           secret='**********************')
                       Error in function (type, msg, asError = TRUE)  : 
                         Failed to connect to api.shinyapps.io port 443: Connection refused
                       Timing stopped at: 0 0 3.72

5              Tried to fix it using insecure calls to shinyapps

                                                options(shinyapps.service_url = "http://api.shinyapps.io/v1")

6              Tried to authorize my account - with an error on the port 80 now - insecure calls don’t help

                       > shinyapps::setAccountInfo(name='sergei', 
                       +                           token='*******************************', 
                       +                           secret='******************************')
                       Error in function (type, msg, asError = TRUE)  : 
                         Failed to connect to api.shinyapps.io port 80: Connection refused
                       Timing stopped at: 0 0 3.46 

7              Got lost 

Any suggestions on teh next steps? (Yes - I contacted our IT - they have no idea...)
Regards,
Sergei

vishal lakha

unread,
Jul 17, 2015, 4:57:56 AM7/17/15
to shinyap...@googlegroups.com, kget...@gmail.com
Damn I have the same problem....any help please !!!!!!!!!!

Lamar Watson

unread,
Sep 25, 2015, 12:44:10 PM9/25/15
to ShinyApps Users, kget...@gmail.com
Did anyone actually figure out this issue? I have walked through all the steps in the thread and still get the SSL Certification Problem

Andy Kipp

unread,
Sep 25, 2015, 1:08:43 PM9/25/15
to Lamar Watson, ShinyApps Users, Ken Geter
Lamar,

What error are you seeing exactly? Are you running behind a proxy server?

-Andy

On Fri, Sep 25, 2015 at 12:44 PM, Lamar Watson <lamar...@gmail.com> wrote:
Did anyone actually figure out this issue? I have walked through all the steps in the thread and still get the SSL Certification Problem

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.

Lamar Watson

unread,
Sep 25, 2015, 1:24:49 PM9/25/15
to ShinyApps Users, lamar...@gmail.com, kget...@gmail.com

Not sure about the proxy server, running behind corporate firewall from work. Trying to set up my account and deploy but running into issues at the setAccountInfo step:

 "Error in function (type, msg, asError = TRUE)  : 
  SSL certificate problem: self signed certificate in certificate chain"
 
Tried this but did nothing: options(shinyapps.service_url = "http://api.shinyapps.io/v1") 

Package: shinyapps
Type: Package
Title: Deployment Interface for Shiny Applications
Version: 0.4.1.4
Date: 2013-11-03
Author: JJ Allaire
Maintainer: JJ Allaire <j...@rstudio.com>
Description: Deployment Interface for Shiny Applications
Depends: R (>= 3.0.0)
Imports: digest, PKI, RCurl, RJSONIO, packrat (>= 0.4.2-1), yaml (>= 2.1.5), rstudioapi (>= 0.2)
Suggests: scrypt, knitr, testthat, rmarkdown (>= 0.5.2)
Enhances: BiocInstaller
License: GPL-2
RemoteType: github
RemoteHost: api.github.com
RemoteRepo: shinyapps
RemoteUsername: rstudio
RemoteRef: master
RemoteSha: 688a4ac0c2377000a20d83604a40b2e6918a56dd
GithubRepo: shinyapps
GithubUsername: rstudio
GithubRef: master
GithubSHA1: 688a4ac0c2377000a20d83604a40b2e6918a56dd
Built: R 3.2.2; ; 2015-09-25 14:44:32 UTC; windows

Package: rsconnect
Type: Package
Title: Deployment Interface for Shiny Applications
Version: 0.4.1.4
Date: 2013-11-03
Author: JJ Allaire
Maintainer: JJ Allaire <j...@rstudio.com>
Description: Deployment Interface for Shiny Applications
Depends: R (>= 3.0.0)
Imports: digest, PKI, RCurl, RJSONIO, packrat (>= 0.4.2-1), yaml (>= 2.1.5), rstudioapi (>= 0.2)
Suggests: scrypt, knitr, testthat, rmarkdown (>= 0.5.2)
Enhances: BiocInstaller
License: GPL-2
RemoteType: github
RemoteHost: api.github.com
RemoteRepo: rsconnect
RemoteUsername: rstudio
RemoteRef: master
RemoteSha: 6ea6977664d2f7f9dea0d773156973399f2869bd
GithubRepo: rsconnect
GithubUsername: rstudio
GithubRef: master
GithubSHA1: 6ea6977664d2f7f9dea0d773156973399f2869bd
Built: R 3.2.2; ; 2015-09-25 16:21:11 UTC; windows

RStudio Version: Version 0.99.473


Lamar Watson

unread,
Sep 28, 2015, 9:25:10 AM9/28/15
to ShinyApps Users, lamar...@gmail.com, kget...@gmail.com
This definitely had to do with being behind the corporate firewall. I set up a hot spot with my phone and everything ran correctly. Hopefully this helps someone else troubleshoot their issue.

Andy Kipp

unread,
Sep 28, 2015, 10:23:15 AM9/28/15
to Lamar Watson, ShinyApps Users, Ken Geter
Lamar,

You might want to reach out to your network administrator to see if you are running behind a proxy server. 

-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages