ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Result of generating a self-signed certificate.
*/
export interface ISelfSignedCert {
/** PEM-encoded private key. */
key: string;
/** PEM-encoded X.509 certificate. */
cert: string;
/** SHA-256 fingerprint in Electron's format: `sha256/<base64>`. */
fingerprint: string;
}
/**
* Generate a self-signed ECDSA (P-256) certificate for `127.0.0.1` using
* only Node's built-in `crypto` module. The certificate is valid for one
* year from the current time.
*
* The raw ASN.1/DER construction avoids external dependencies. Only a
* minimal X.509 v3 certificate is produced — just enough for TLS on the
* loopback interface with certificate pinning.
*
* **Security note:** this certificate is a defence-in-depth measure for a
* proxy that is already bound exclusively to `127.0.0.1`. TLS prevents
* other local processes from passively sniffing tunnel traffic and the
* pinned fingerprint stops active MITM on loopback. If certificate
* generation fails the proxy simply will not start — the failure is
* non-critical to the overall application.
*
* Do not rely on this certificate for security-critical scenarios.
*/
export async function generateSelfSignedCert(): Promise<ISelfSignedCert> {
crypto
privateKey publicKey crypto
namedCurve
publicKeyEncoding type format
privateKeyEncoding type format
cert crypto privateKey publicKey
certDer cert
hash cryptocertDer
fingerprint
key privateKey cert fingerprint
crypto
privateKeyPem
publicKeyPem
spkiDer publicKeyPem
serial crypto
serial
now
notAfter now
notAfternow
cnOid Buffer
issuerAndSubject
cnOid
validity
now
notAfter
version Buffer
serialNumber serial
sigAlgOidBytes Buffer
sigAlg sigAlgOidBytes
sanExtension
extensions Buffer
Buffer
sanExtension
tbs
version
serialNumber
sigAlg
issuerAndSubject
validity
issuerAndSubject
spkiDer
extensions
signer crypto
signertbs
signature signerprivateKeyPem
sigBitString Buffer
Buffer
signaturelength
Buffer
signature
certDer tbs sigAlg sigBitString
b64 certDer
lines
i i b64length i
linesb64i i
Buffer
sanOid Buffer
ipBytes Buffer
sanValue ipBytes
sanOid sanValue
pem Buffer
b64 pem
Bufferb64
length Buffer
length
Bufferlength
length
Buffer length
length
Buffer length length
length
Buffer length length length
content Buffer Buffer
Buffercontentlength content
items Buffer Buffer
content Bufferitems
BufferBuffer contentlength content
items Buffer Buffer
content Bufferitems
BufferBuffer contentlength content
value Buffer Buffer
valuelength
start
start valuelength valuestart valuestart
start
content valuestart
content
content BufferBuffer content
BufferBuffer contentlength content
value Buffer Buffer
BufferBuffer valuelength value
str Buffer
content Bufferstr
BufferBuffer contentlength content
content Buffer Buffer
BufferBuffer contentlength content
date Date Buffer
iso date
year date
year year
content Bufferiso
BufferBuffer contentlength content
content Bufferiso
BufferBuffer contentlength content