شعار Mtls Curl

Mtls Curl

مؤسسة
OpenLinkSoftware
mtls-curl

Execute mTLS (Mutual TLS) sessions using a PKCS#12 certificate bundle — either HTTP/HTTPS requests via curl (Mode A) or Virtuoso SQL sessions via iSQL with WebID authentication (Mode B). Interactively elicits the PKCS#12 file path, access password, CA bundle, and WebID URI when not already supplied. Use whenever the user wants to make an authenticated HTTP/HTTPS request using a client certificate, open a Virtuoso iSQL session with mTLS + WebID, test an mTLS-protected endpoint, or mentions PKCS#12, .p12, .pfx, mTLS, mutual TLS, iSQL, WebID, or -X/-T/-W flags.

نظرة عامة

الناشرOpenLinkSoftware
المستودعai-agent-skills
اسم المهارةmtls-curl
النجوم
42
التفريعات
10
الملفات المرفقة
3
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها OpenLinkSoftware على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Mtls Curl في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/mtls-curl
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenLinkSoftware/ai-agent-skills.git /tmp/ai-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-agent-skills/mtls-curl .claude/skills/mtls-curl
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Mtls Curl في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Mtls Curl تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Mtls Curl بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

mTLS Session Skill (v1.1.0)

Executes mTLS-authenticated sessions using a PKCS#12 certificate bundle, covering two modes:

  • Mode A — HTTP/HTTPS via curl — one-shot or repeated HTTP requests against any mTLS-protected endpoint
  • Mode B — Virtuoso SQL via isql — interactive SQL session authenticated by client certificate + WebID identity

Both modes guide the user through supplying (or locating) their .p12 / .pfx file and password before executing. Never logs, echoes, or stores the certificate password.


Execution Routing

  1. Local curl (Mode A) — one-shot HTTP/HTTPS requests with client cert
  2. Local isql (Mode B) — interactive Virtuoso SQL session with WebID auth
  3. Shell password elicitation — read -s to collect the password without echo
  4. Environment variables — accept MTLS_PKCS12_FILE, MTLS_PKCS12_PWD, MTLS_CA_BUNDLE, and MTLS_WEBID as pre-supplied inputs; skip elicitation when set

Mode selection: default to Mode A (curl) for HTTP endpoints; switch to Mode B (iSQL) when the user mentions Virtuoso, iSQL, SQL session, port 1111, or uses the -X/-T/-W flag syntax.

If the user explicitly specifies a different client (e.g., HTTPie, Python requests, openssl s_client), follow that preference and adapt accordingly.


Step 0 — Resolve Inputs

Collect all required inputs before constructing any command. Which inputs are needed depends on the mode:

#InputMode A (curl)Mode B (iSQL)Source priority
1PKCS#12 file pathrequiredrequiredExplicit arg → $MTLS_PKCS12_FILE → elicit
2PKCS#12 passwordrequiredrequired$MTLS_PKCS12_PWD → elicit (masked)
3Target URLrequired—Explicit arg → elicit
4Host:port—requiredExplicit arg → elicit
5CA bundle pathoptionalrequiredExplicit arg → $MTLS_CA_BUNDLE → auto-detect → elicit
6WebID URI—requiredExplicit arg → $MTLS_WEBID → elicit

0a — Locate PKCS#12 File

If the user has not supplied a path and $MTLS_PKCS12_FILE is unset:

bash
# 1. Check environment
echo "${MTLS_PKCS12_FILE:-not set}"

# 2. Scan common locations for .p12 / .pfx files
find "$HOME" -maxdepth 5 \( -name "*.p12" -o -name "*.pfx" \) 2>/dev/null | head -20

Present any matches and ask the user to confirm which file to use:

"I found the following PKCS#12 files. Which one should I use, or would you like to provide a different path?"

If no files are found, prompt:

"Please provide the full path to your PKCS#12 (.p12 or .pfx) file."

0b — Elicit Password (Masked)

Never display, echo, or log the certificate password. Use shell masked input so it does not appear in the terminal or in shell history:

bash
# Collect password without echo — assign to shell variable only
read -s -p "PKCS#12 password: " MTLS_PWD
echo   # newline after silent input

If $MTLS_PKCS12_PWD is already set in the environment, skip this step and inform the user:

"Using password from $MTLS_PKCS12_PWD environment variable."

0c — Elicit Target URL (Mode A)

If no URL was given, prompt:

"Please provide the target URL for the mTLS request."

0d — Elicit Host:Port (Mode B)

If no host:port was given, prompt:

"Please provide the Virtuoso host and port (e.g., localhost:1111 or data.example.org:1111)."

Default Virtuoso iSQL port is 1111.

0e — Locate CA Bundle (Mode B)

Required for iSQL's -T flag. Resolve in this order:

PrioritySource
1Explicit user argument
2$MTLS_CA_BUNDLE environment variable
3OS default bundle (see table below)
4Interactive elicitation

OS default CA bundle locations:

OSDefault Path
macOS (Homebrew)/opt/homebrew/etc/openssl@3/cert.pem
macOS (system)/etc/ssl/cert.pem
Ubuntu / Debian/etc/ssl/certs/ca-certificates.crt
RHEL / CentOS/etc/pki/tls/certs/ca-bundle.crt
Alpine/etc/ssl/certs/ca-certificates.crt
bash
# Auto-detect: try each path in order
for f in \
  "$MTLS_CA_BUNDLE" \
  /opt/homebrew/etc/openssl@3/cert.pem \
  /etc/ssl/cert.pem \
  /etc/ssl/certs/ca-certificates.crt \
  /etc/pki/tls/certs/ca-bundle.crt; do
  [ -f "$f" ] && echo "Found CA bundle: $f" && break
done

If none found, prompt:

"Please provide the path to your CA certificate bundle (e.g., ca-bundle.crt)."

0f — Elicit WebID URI (Mode B)

The WebID URI identifies the user/agent in the server's access control policy. It is the rdfs:seeAlso link in the TLS client certificate's Subject Alternative Name (SAN) extension, pointing to an RDF profile document that asserts the public key.

Resolve in this order:

PrioritySource
1Explicit user argument
2$MTLS_WEBID environment variable
3Extract from client cert SAN
4Interactive elicitation
bash
# Attempt to extract WebID URI from PKCS#12 SAN extension
openssl pkcs12 -in "{pkcs12-file}" -clcerts -nokeys \
  -passin "pass:${MTLS_PWD}" 2>/dev/null \
  | openssl x509 -noout -text 2>/dev/null \
  | grep -A2 "Subject Alternative Name" \
  | grep -oE "URI:[^\s,]+" | sed 's/URI://'

If found, confirm with the user:

"Found WebID URI in your certificate: {webid-uri}. Use this?"

If not found or not confirmed, prompt:

"Please provide your WebID URI (e.g., https://id.example.org/dataspace/person/alice#this)."



Mode A — HTTP/HTTPS via curl

Standing credential pattern (this operator)

For URIBurner / WebID-TLS work, use the PKCS#12 file path from core.ttl (:userPrincipalCredentials), not a PEM extracted into TMPDIR:

bash
P12="{CREDENTIALS_ROOT}/Templates/YouID/link-in-bio-credentials-5/cert.p12"
MTLS_PKCS12_PW="$(security find-generic-password -s uriburner-p12 -a "$USER" -w)" || {
  echo "Keychain lookup failed; stop and ask the user to resolve secure-store access." >&2
  exit 1
}
if [ -z "$MTLS_PKCS12_PW" ]; then
  echo "Keychain returned no passphrase; stop and ask the user to resolve secure-store access." >&2
  exit 1
fi
export MTLS_PKCS12_PW
curl -sk --cert-type P12 --cert "$P12" --pass "$MTLS_PKCS12_PW" ...
unset MTLS_PKCS12_PW

Prefer --cert "$P12" --pass "$MTLS_PKCS12_PW" over --cert file.p12:$PASSWORD. Against linkeddata.uriburner.com DAV, use port 5443.

Remote upload and removal (HTTP → WebDAV → iSQL)

Same credentials and the same attempt order for both writes and deletes. Prefs Steps 215–216; howto/remote-webdav-upload.ttl and howto/remote-resource-removal.ttl.

Upload: HTTP PUT --upload-file first on https://linkeddata.uriburner.com:5443{dav-path}. WebDAV only if PUT failed. iSQL DAV_RES_UPLOAD / DAV_RES_UPLOAD_STRSES_INT last. Report :5443 GET and public 443 GET separately (443 is often 401 on a successful new PUT).

Removal: HTTP DELETE first on the same :5443 URL. WebDAV only if DELETE failed. iSQL DAV_DELETE last. Do not claim the object is gone until the user-named URL, public 443 URL, :5443 GET, and the folder listing all agree it is absent.


Step 1 — Validate the Certificate Bundle

Before making a live request, verify the PKCS#12 file is readable and the password is correct:

bash
openssl pkcs12 \
  -in "{pkcs12-file}" \
  -noout \
  -passin "pass:${MTLS_PWD}" 2>&1
ResultAction
MAC verified OK or no error outputProceed to Step 2
Mac verify errorReport bad password; return to Step 0b
No such file or directoryReport bad path; return to Step 0a
openssl: command not foundInstruct user to install openssl; skip validation

Step 2 — Execute the mTLS Request

Construct and run the canonical curl command:

bash
curl -iLk \
  --cert-type P12 \
  --cert "{pkcs12-file}:${MTLS_PWD}" \
  "{target-url}"

Curl Flag Reference

FlagMeaning
-iInclude HTTP response headers in output
-LFollow HTTP redirects (3xx)
-kAllow insecure server certificates (self-signed / internal CAs)
--cert-type P12Tell curl the certificate is PKCS#12 format
--cert file:pwdSupply client certificate and password together

Optional Flag Extensions

Append any of these when the user requests more detail or control:

FlagEffect
-vVerbose: show TLS handshake, request/response headers
--tls-max 1.2Cap TLS version (e.g., force TLS 1.2)
--tlsv1.3Require TLS 1.3 minimum
-H "Accept: application/json"Set Accept header
-H "Authorization: Bearer {token}"Add Bearer token alongside mTLS
-o /dev/null -w "%{http_code}"Return only the HTTP status code
--cacert {ca-bundle}Verify server against a specific CA bundle (replaces -k)
-X POST --data @{file}POST a request body from a file
--compressedRequest gzip-compressed response
-sSilent: suppress progress meter (use with -o or piping)

Security note: Replace -k with --cacert {ca-bundle} whenever a trusted CA bundle is available. -k disables server certificate verification and should only be used on internal or test endpoints.


Step 3 — Present and Interpret the Response

Display the full response (headers + body). Then annotate key fields:

HTTP Status Codes

RangeMeaning
2xxSuccess — request accepted
401Unauthorized — client cert rejected or credentials mismatch
403Forbidden — cert valid but insufficient permissions
495SSL Certificate Error — cert presented but invalid
496SSL Certificate Required — no client cert presented
526Invalid SSL Certificate — server-side issue

TLS Handshake Failures (visible with -v)

Error stringLikely cause
SSL_ERROR_HANDSHAKE_FAILURE_ALERTServer rejected the client cert
certificate verify failedCA chain mismatch (add --cacert)
no certificate or key foundWrong password or corrupted P12
NSS error -8023PKCS#12 passphrase incorrect (NSS backend)

Step 4 — Session Reuse (Optional)

After a successful request, offer:

"Would you like to reuse this certificate for additional requests in this session? I can remember the file path (but not the password — you will be prompted again for each new shell invocation)."

If yes, set the path in the current shell environment:

bash
export MTLS_PKCS12_FILE="{pkcs12-file}"

Never persist the password to environment, shell history, or any file.



Mode B — Virtuoso SQL via isql


Step 5 — Validate Inputs (Mode B)

Run the same PKCS#12 bundle validation as Step 1, then additionally confirm the CA bundle is readable:

bash
# PKCS#12 validation (same as Step 1)
openssl pkcs12 -in "{pkcs12-file}" -noout -passin "pass:${MTLS_PWD}" 2>&1

# CA bundle readable?
openssl verify -CAfile "{ca-bundle}" "{ca-bundle}" 2>&1 | head -3

Step 6 — Construct and Execute the iSQL Command

The canonical Virtuoso mTLS + WebID iSQL invocation:

isql {host}:{port} "" {pkcs12-pwd} -X {pkcs12-file} -T {ca-bundle} -W {user-webid}

Argument breakdown

Position / FlagValueNotes
{host}:{port}e.g., localhost:1111First positional — connection target
""empty stringSecond positional — username must be empty; signals cert-based auth
{pkcs12-pwd}password stringThird positional — PKCS#12 passphrase
-X {pkcs12-file}path to .p12 / .pfxClient certificate bundle
-T {ca-bundle}path to CA cert fileServer certificate verification; required for TLS
-W {user-webid}WebID URIIdentity assertion — must match a key in the server's ACL graph

The empty-username convention

The "" (empty string) in the username position is the signal to Virtuoso's iSQL that no SQL-layer username/password auth should occur. Authentication is delegated entirely to:

  1. The TLS handshake (client cert presented via -X)
  2. The WebID profile lookup (identity asserted via -W)

Passing any non-empty username here would attempt SQL password authentication in parallel and likely fail or shadow the WebID flow.

Preview before execution

Always show the sanitized form (password as ****) before running:

isql {host}:{port} "" **** -X {pkcs12-file} -T {ca-bundle} -W {user-webid}

Confirm with the user, then execute:

bash
isql "{host}:{port}" "" "${MTLS_PWD}" \
  -X "{pkcs12-file}" \
  -T "{ca-bundle}" \
  -W "{user-webid}"

Security note: Unlike curl's --cert file:pwd, the iSQL password is a plain positional argument and will be briefly visible in ps output for the duration of the process start. Mitigate by:

  • Using a shell variable (not a literal string) so the value isn't in .bash_history / .zsh_history
  • Running in a dedicated terminal session with restricted ps visibility
  • Preferring certificate-only auth flows where Virtuoso supports it

Step 7 — Interactive SQL Session (Mode B)

On successful connection, isql presents a prompt:

Connected to OpenLink Virtuoso
Driver: 08.03.3337 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL>

The session runs under the identity of the WebID — access control is governed by Virtuoso's VAL (Virtuoso Access Layer) ACL graph for that WebID.

Useful session commands

CommandEffect
SELECT USER;Confirm the authenticated user identity
SPARQL SELECT * WHERE { ?s ?p ?o } LIMIT 5;Run a SPARQL query inline
SELECT TOP 10 * FROM Demo.Demo.Customers;SQL query
GRANT EXECUTE ON ...Grant privileges (if WebID has DBA role)
HELP;List available commands
EXIT;Close the session

Non-interactive (batch) mode

To run a single statement without entering the interactive prompt:

bash
echo "SELECT USER;" \
  | isql "{host}:{port}" "" "${MTLS_PWD}" \
      -X "{pkcs12-file}" \
      -T "{ca-bundle}" \
      -W "{user-webid}"

Or pass a script file:

bash
isql "{host}:{port}" "" "${MTLS_PWD}" \
  -X "{pkcs12-file}" \
  -T "{ca-bundle}" \
  -W "{user-webid}" \
  < my-script.sql

Step 8 — Session Reuse (Mode B)

After a successful iSQL session, offer to export the non-secret inputs:

bash
export MTLS_PKCS12_FILE="{pkcs12-file}"
export MTLS_CA_BUNDLE="{ca-bundle}"
export MTLS_WEBID="{user-webid}"
# Note: MTLS_PKCS12_PWD intentionally NOT exported — re-elicit each session

Mode B Troubleshooting

SymptomLikely CauseFix
Cannot loginWebID not in server ACLCheck VAL ACL graph; confirm WebID has SELECT access
SSL handshake failedCA bundle mismatch or cert not trustedVerify -T points to the correct CA that signed the server cert
Invalid certificateWrong P12 or wrong passwordRe-validate with openssl pkcs12 -noout
no such user error after connectUsername field not emptyEnsure second positional arg is "" (empty string)
WebID verification failedWebID profile document unreachable or key mismatchConfirm WebID URI resolves and its RDF profile contains the cert's public key
Connection refusedWrong host:portVerify Virtuoso is running on the target port (telnet {host} {port})
isql: command not foundVirtuoso client tools not in PATHLocate with find /opt /usr -name isql 2>/dev/null; add to PATH

Security Guidelines

  1. Password never logged — always use read -s; never interpolate the password into a visible command string displayed to the user.
  2. Prefer --cacert over -k — only use -k when the server uses a self-signed or internal CA that cannot be trusted via bundle.
  3. Scope the certificate — use purpose-specific .p12 files (agent certificates) rather than personal identity certificates where possible.
  4. Short-lived sessions — do not cache passwords across shell sessions; re-elicit on each invocation.
  5. Audit curl flags — always show the user the exact curl command that will run (with password replaced by ****) before executing:
curl -iLk --cert-type P12 --cert "{pkcs12-file}:****" "{target-url}"

Common Usage Patterns — Mode A (curl)

Pattern A — Quick endpoint test

User says: "Test mTLS against https://api.example.com/health"

  1. Elicit PKCS#12 file and password
  2. Validate bundle
  3. Run: curl -iLk --cert-type P12 --cert "{file}:${MTLS_PWD}" https://api.example.com/health
  4. Display response + HTTP status interpretation

Pattern B — SPARQL endpoint with client cert

User says: "Query https://data.example.org/sparql with my agent cert"

  1. Elicit PKCS#12 file and password
  2. Run SPARQL GET:
    bash
    curl -iLk \
      --cert-type P12 \
      --cert "{file}:${MTLS_PWD}" \
      -H "Accept: application/sparql-results+json" \
      "https://data.example.org/sparql?query=SELECT+*+WHERE+%7B%3Fs+%3Fp+%3Fo%7D+LIMIT+10"

Pattern C — Verbose TLS debug

User says: "Show me the TLS handshake details"

bash
curl -iLkv \
  --cert-type P12 \
  --cert "{file}:${MTLS_PWD}" \
  "{target-url}" 2>&1

Pattern D — POST with JSON body

bash
curl -iLk \
  --cert-type P12 \
  --cert "{file}:${MTLS_PWD}" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}' \
  "{target-url}"

Common Usage Patterns — Mode B (iSQL)

Pattern E — Standard Virtuoso mTLS + WebID session

User says: "Open an iSQL session on localhost:1111 with my agent cert"

  1. Elicit (or confirm) PKCS#12 file, password, CA bundle, WebID URI
  2. Validate bundle
  3. Show sanitized preview:
    isql localhost:1111 "" **** -X agent.p12 -T ca-bundle.crt -W https://id.example.org/me#this
  4. Execute:
    bash
    isql "localhost:1111" "" "${MTLS_PWD}" \
      -X agent.p12 \
      -T ca-bundle.crt \
      -W "https://id.example.org/me#this"
  5. At SQL> prompt, run SELECT USER; to confirm authenticated identity

Pattern F — Batch SPARQL via iSQL

User says: "Run a SPARQL query over iSQL with my cert"

bash
echo 'SPARQL SELECT DISTINCT ?type WHERE { ?s a ?type } LIMIT 10;' \
  | isql "{host}:{port}" "" "${MTLS_PWD}" \
      -X "{pkcs12-file}" \
      -T "{ca-bundle}" \
      -W "{user-webid}"

Pattern G — Verify WebID identity on connection

bash
echo "SELECT USER, SYS_STAT('st_dbms_name');" \
  | isql "{host}:{port}" "" "${MTLS_PWD}" \
      -X "{pkcs12-file}" \
      -T "{ca-bundle}" \
      -W "{user-webid}"

Expected output confirms the WebID URI as the session identity.


Initialization Sequence

When invoked:

  1. Determine mode: A (curl / HTTP) or B (iSQL / Virtuoso SQL)
  2. Run Step 0 — resolve all required inputs for the selected mode
  3. Run Step 1 / Step 5 — validate PKCS#12 bundle (skip only if openssl unavailable)
  4. Show the user the sanitized command (password as ****)
  5. Confirm before executing, or execute immediately if the user said "go ahead"

Mode A continues: 6. Run Step 2 — execute curl request 7. Run Step 3 — present and annotate response 8. Offer Step 4 — export PKCS#12 path for session reuse

Mode B continues: 6. Run Step 6 — execute iSQL session 7. Run Step 7 — assist with interactive or batch SQL 8. Offer Step 8 — export non-secret inputs for session reuse


Troubleshooting

SymptomLikely CauseFix
curl: (58) unable to set private key fileWrong passwordRe-elicit password; re-validate with openssl
curl: (35) OpenSSL SSL_connectTLS version mismatchAdd --tlsv1.2 or --tls-max 1.3
curl: (6) Could not resolve hostDNS failureCheck URL spelling and network
curl: (60) SSL certificate problemServer cert untrustedAdd --cacert {bundle} or use -k for testing
curl: (77) Problem with the SSL CA certBad --cacert pathVerify CA bundle path
HTTP 401 after cert presentedCert not authorized on serverConfirm correct cert is enrolled on target
HTTP 403Cert valid, insufficient scopeCheck server-side ACL/role for this cert's CN/SAN
openssl Mac verify errorWrong P12 passwordRe-elicit password

Reference Files

FileContents
references/curl-tls-options.mdComplete curl TLS flag reference with examples
references/pkcs12-openssl-guide.mdWorking with PKCS#12 files: inspect, extract, convert
references/virtuoso-isql-mtls.mdVirtuoso iSQL mTLS + WebID flag reference and session guide

Safe Virtuoso ISQL Error Output

Whenever this workflow invokes OpenLink's native Virtuoso isql client, pass the bare client option COMMAND_TEXT_ON_ERROR=OFF, for example isql {host}:{port} {user} {password} COMMAND_TEXT_ON_ERROR=OFF {script.sql}. Place it before SQL input, script arguments, or -i. OFF maps to the client's internal value 0 and prevents the client from appending the full failed command to error output. The client accepts OFF/ON; literal 0 is rejected. Do not use -u for this setting (-u populates the U argument array). This does not redact secrets from server diagnostics, shell history, or process arguments, so keep credentials out of SQL text and logs. Do not apply this Virtuoso-specific option to unixODBC/iODBC isql clients.

Version

1.1.0 — Added Mode B: Virtuoso iSQL mTLS + WebID authentication. Interactive elicitation for CA bundle and WebID URI. Auto-detect WebID from certificate SAN. OS CA bundle auto-detection. Empty-username convention documented. iSQL batch mode. Session export for non-secret inputs.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Mtls Curl؟

Execute mTLS (Mutual TLS) sessions using a PKCS#12 certificate bundle — either HTTP/HTTPS requests via curl (Mode A) or Virtuoso SQL sessions via iSQL with WebID authentication (Mode B). Interactively elicits the PKCS#12 file path, access password, CA bundle, and WebID URI when not already supplied. Use whenever the user wants to make an authenticated HTTP/HTTPS request using a client certificate, open a Virtuoso iSQL session with mTLS + WebID, test an mTLS-protected endpoint, or mentions PKCS#12, .p12, .pfx, mTLS, mutual TLS, iSQL, WebID, or -X/-T/-W flags.

لماذا تستخدم Mtls Curl على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Mtls Curl عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Mtls Curl في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/mtls-curl. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Mtls Curl؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Mtls Curl؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Mtls Curl معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Mtls Curl مجانية؟

نعم. نشرها OpenLinkSoftware على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇