Matt
Matt

Reputation: 63

'Peer Not Authenticated', parse.com SSL certificate expired

I'm currrently struggling with a 'Peer Not Authenticated' issue while gradling on Android Studio. When I try to clean my project, AS tells me that the issue comes from https://maven.parse.com/repo/com/parse/tools/gradle/maven-metadata.xml

With an internet browser, I see that the SSL certificate of *.parse.com has expired on Thursday 26th... I've already tried to replace the 'https' with 'http' in order to bypass the checking but it doesn't work.

Here is the head of my build.gradle file:

apply plugin: 'com.android.application'
apply plugin: 'com.parse'

buildscript {
    repositories {
        mavenCentral()
        maven { url 'https://maven.parse.com/repo' }
    }
    dependencies {
        classpath 'com.parse.tools:gradle:1.+'
    }
}

Upvotes: 3

Views: 389

Answers (1)

ninehundreds
ninehundreds

Reputation: 1105

I ran into this tonight as well. If you take a look at your IntelliJ log you should see an SSL error associated with reaching that url. To workaround this problem, remove the Parse dependency via the Maven URL and add in the JAR manually to your libs folder.

In your project Gradle add the following under 'dependencies' to reference the manually added libs:

compile files('libs/Parse-1.9.4.jar')
compile files('libs/ParseCrashReporting-1.9.4.jar')

Remove anything that looks like this from both gradle files:

maven {
  url 'https://maven.parse.com/repo'
}

classpath 'com.parse.tools:gradle:1.+'

apply plugin: 'com.parse'

parse {
    applicationId "blahblahblahblah"
    masterKey "ohmasterkeyyousonice"
    retries 3
    uploadSymbols true
}

Rock and roll hoochie koo...

Note: you just need parse gradle plugin if you are using ParseCrashReporting, if not needed remove it.

Github Issue

Upvotes: 5

Related Questions