qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.1k stars 159 forks source link

On preview a certificate error occurs - see issue #445 #474

Open marvin-littlewood opened 2 years ago

marvin-littlewood commented 2 years ago

Thank you for your help.

Environment: Plant UML: 2.17.2, using a connection to the Plant UML Server

VSCode: Version: 1.63.2 (user setup) Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3 Date: 2021-12-15T09:40:02.816Z Electron: 13.5.2 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19044

The following appears when I try to preview an activity diagram, on Windows 10 I get the following:

Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34) at TLSSocket.emit (events.js:315:20) at TLSSocket.EventEmitter.emit (domain.js:467:12) at TLSSocket._finishInit (_tls_wrap.js:932:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)

Yet on MacOS, there is no problem with the same plant UML text.

Aviortheking commented 2 years ago

same error on VSCodium 1 .63.2 on Windows 11

PlantUML v2.17.2

Error: certificate has expired
at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
at TLSSocket.emit (events.js:315:20)
at TLSSocket._finishInit (_tls_wrap.js:932:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)

settings image

Example uml (happens with any UML)

@startuml

class Test {
    String Pouet
}

@enduml
pommetjehorlepiep commented 2 years ago

Got same exception, just different error but still certificate related.

Running PlantUML Picoweb behind a reverse proxy using https. VSCode: 1.66.2 PlantUML extension: v2.17.2 PlantUML version: 1.2022.4

image

But over http it works fine: image

BalJoc commented 2 years ago

Hi!

I've a the same problem with my own PlantUML Server with a trust chain. image The root CA certificate is added to the certificate store of my machine. Within my webbrowser the server certificate is trusted, so the trustchain works fine.

Using PlantUML v2.17.3, Kroki with PlantUML 1.2022.3 and VS Code Version: 1.69.2 (Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a).