cangjie-tls

Configure TLS 1.2/1.3 client and server connections in Cangjie using stdx.net.tls and OpenSSL 3.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-tls-zhenzhizhi12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-tls
Source: https://github.com/zhenzhizhi12/NexusAgent/tree/main/.opencode/skills/common-skill-l1/tls
Command: npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-tls-zhenzhizhi12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and examples for implementing secure Transport Layer Security (TLS) communication within the Cangjie programming language, enabling developers to protect network data.

Core Features & Use Cases

  • TLS 1.2 & 1.3 Support: Implement secure communication channels using modern TLS protocols.
  • Client/Server Configuration: Detailed explanations of TlsClientConfig and TlsServerConfig for setting up secure connections.
  • Socket Usage: Demonstrates the use of TlsSocket for encrypted data transmission.
  • Advanced Features: Covers certificate verification, session resumption, ALPN negotiation, and mutual TLS (mTLS).
  • Use Case: Securely connect your Cangjie application to an external API over HTTPS, ensuring data integrity and confidentiality.

Quick Start

Use the cangjie-tls skill to create a secure TLS client connection to example.com on port 8443.

Frequently Asked Questions about cangjie-tls

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement TLS encryption for network communication in Cangjie?

To implement TLS encryption in Cangjie, use the stdx.net.tls package to configure TlsClientConfig and TlsServerConfig, then transmit data securely over TlsSocket. It supports TLS 1.2 and 1.3 protocols.

How do I configure mTLS authentication in a Cangjie application?

Configuring mutual TLS (mTLS) authentication in a Cangjie application involves setting up both TlsClientConfig and TlsServerConfig to require and validate peer certificates. This ensures both parties authenticate each other during the secure connection handshake.

Can I use OpenSSL 3 with Cangjie for secure socket connections?

Yes, secure Cangjie network communication integrates directly with OpenSSL 3 to handle cryptographic operations. This integration underpins the TlsSocket implementation for establishing encrypted TLS 1.2 and 1.3 connections.

How do I set up ALPN negotiation and session resumption for Cangjie TLS clients?

You can configure ALPN negotiation and session resumption within the TlsClientConfig settings when establishing your TlsSocket. These advanced features optimize connection speeds and protocol selection for secure Cangjie network communication.

What certificate validation modes are available for Cangjie TlsSocket?

The Cangjie stdx.net.tls package provides configurable certificate validation modes within TlsClientConfig and TlsServerConfig. These modes dictate how strictly peer certificates are verified during the TLS handshake process.

Are there limitations when using Cangjie TLS for external API connections?

Limitations when using Cangjie TLS for external API connections depend on the configured certificate validation modes and TLS protocol versions. Ensure your TlsClientConfig matches the target server's TLS 1.2 or 1.3 requirements for successful secure data transmission.