Как использовать letsencrypt nginx сертификаты для ant sign-jar для подписи расширений ScreenShare
Мы пытаемся протестировать BigBlueButton на виртуальной машине Ubuntu 16.04 на GCE. Теперь, как видно из документации здесь -
Итак, чтобы попробовать их приложение для совместного использования экрана, как описано здесь -
https://github.com/bigbluebutton/bigbluebutton/tree/master/bbb-screenshare
Мы нашли build.sh
следующее -
if [ -d "lib" ]; then
rm -rf lib
fi
mkdir lib
cp ../../app/jws/lib/ffmpeg.jar lib
gradle clean
gradle jar
ant sign-jar
cp build/libs/javacv-screenshare-0.0.1.jar ../../app/jws/lib/
rm -rf lib
Итак, все до успешного запуска и после запускаant sign-jar
" Я получил -
BUILD SUCCESSFUL
Total time: 11.215 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html
Buildfile: /home/harshit/dev/bigbluebutton/bbb-screenshare/jws/webstart/build.xml
check-certificate:
[input] Enter cetificate filename:
cert1.pem
[input] Enter cetificate password:
privkey1.pem
[exec] Result: 1
get-alias-name:
BUILD FAILED
/home/harshit/dev/bigbluebutton/bbb-screenshare/jws/webstart/build.xml:45: javax.script.ScriptException: TypeError: Cannot get property "0" of null in <eval> at line number 5
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:470)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:454)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:109)
at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: <eval>:5 TypeError: Cannot get property "0" of null
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:213)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:185)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:172)
at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:183)
at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66)
at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:154)
at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:253)
at jdk.nashorn.internal.scripts.Script$\^eval\_.:program(<eval>:5)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
... 30 more
Total time: 17 seconds
Итак, я хотел знать и понимать, какие сертификаты ant sign-jar
надеется?
В настоящее время я сгенерировал свои сертификаты с помощью letsencrypt для 1 nginx webroot и списка каталогов для корня letsencrypt (/etc/letsencrypt/live/livetuitions.urtutors.com)
является -
lrwxrwxrwx 1 root root 49 Mar 8 22:47 cert.pem -> ../../archive/livetuitions.urtutors.com/cert1.pem
lrwxrwxrwx 1 root root 50 Mar 8 22:47 chain.pem -> ../../archive/livetuitions.urtutors.com/chain1.pem
lrwxrwxrwx 1 root root 54 Mar 8 22:47 fullchain.pem -> ../../archive/livetuitions.urtutors.com/fullchain1.pem
lrwxrwxrwx 1 root root 52 Mar 8 22:47 privkey.pem -> ../../archive/livetuitions.urtutors.com/privkey1.pem