Sonatype Nexus · Capability

Sonatype Nexus Repository Manager — Security: certificates

Sonatype Nexus Repository Manager — Security: certificates. 4 operations. Lead operation: Helper method to retrieve certificate details from a remote system.. Self-contained Naftiko capability covering one Sonatype Nexus business surface.

Run with Naftiko Sonatype NexusSecurity: certificates

What You Can Do

GET
Retrievecertificate — Helper method to retrieve certificate details from a remote system.
/v1/v1/security/ssl
GET
Gettruststorecertificates — Retrieve a list of certificates added to the trust store.
/v1/v1/security/ssl/truststore
POST
Addcertificate — Add a certificate to the trust store.
/v1/v1/security/ssl/truststore
DELETE
Removecertificate — Remove a certificate in the trust store.
/v1/v1/security/ssl/truststore/{id}

MCP Tools

helper-method-retrieve-certificate-details

Helper method to retrieve certificate details from a remote system.

read-only idempotent
retrieve-list-certificates-added-trust

Retrieve a list of certificates added to the trust store.

read-only idempotent
add-certificate-trust-store

Add a certificate to the trust store.

remove-certificate-trust-store

Remove a certificate in the trust store.

idempotent

Capability Spec

repository-security-certificates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: 'Sonatype Nexus Repository Manager — Security: certificates'
  description: 'Sonatype Nexus Repository Manager — Security: certificates. 4 operations. Lead operation: Helper method to
    retrieve certificate details from a remote system.. Self-contained Naftiko capability covering one Sonatype Nexus business
    surface.'
  tags:
  - Sonatype Nexus
  - 'Security: certificates'
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_NEXUS_API_KEY: SONATYPE_NEXUS_API_KEY
capability:
  consumes:
  - type: http
    namespace: repository-security-certificates
    baseUri: ''
    description: 'Sonatype Nexus Repository Manager — Security: certificates business capability. Self-contained, no shared
      references.'
    resources:
    - name: v1-security-ssl
      path: /v1/security/ssl
      operations:
      - name: retrievecertificate
        method: GET
        description: Helper method to retrieve certificate details from a remote system.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: host
          in: query
          type: string
          description: The remote system's host name
          required: true
        - name: port
          in: query
          type: integer
          description: The port on the remote system to connect to
        - name: protocolHint
          in: query
          type: string
          description: An optional hint of the protocol to try for the connection
    - name: v1-security-ssl-truststore
      path: /v1/security/ssl/truststore
      operations:
      - name: gettruststorecertificates
        method: GET
        description: Retrieve a list of certificates added to the trust store.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addcertificate
        method: POST
        description: Add a certificate to the trust store.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-security-ssl-truststore-id
      path: /v1/security/ssl/truststore/{id}
      operations:
      - name: removecertificate
        method: DELETE
        description: Remove a certificate in the trust store.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The id of the certificate that should be removed.
          required: true
    authentication:
      type: basic
      username: '{{env.SONATYPE_NEXUS_USER}}'
      password: '{{env.SONATYPE_NEXUS_PASS}}'
  exposes:
  - type: rest
    namespace: repository-security-certificates-rest
    port: 8080
    description: 'REST adapter for Sonatype Nexus Repository Manager — Security: certificates. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.'
    resources:
    - path: /v1/v1/security/ssl
      name: v1-security-ssl
      description: REST surface for v1-security-ssl.
      operations:
      - method: GET
        name: retrievecertificate
        description: Helper method to retrieve certificate details from a remote system.
        call: repository-security-certificates.retrievecertificate
        with:
          host: rest.host
          port: rest.port
          protocolHint: rest.protocolHint
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/security/ssl/truststore
      name: v1-security-ssl-truststore
      description: REST surface for v1-security-ssl-truststore.
      operations:
      - method: GET
        name: gettruststorecertificates
        description: Retrieve a list of certificates added to the trust store.
        call: repository-security-certificates.gettruststorecertificates
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcertificate
        description: Add a certificate to the trust store.
        call: repository-security-certificates.addcertificate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/security/ssl/truststore/{id}
      name: v1-security-ssl-truststore-id
      description: REST surface for v1-security-ssl-truststore-id.
      operations:
      - method: DELETE
        name: removecertificate
        description: Remove a certificate in the trust store.
        call: repository-security-certificates.removecertificate
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repository-security-certificates-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for Sonatype Nexus Repository Manager — Security: certificates. One tool per consumed operation,
      routed inline through this capability''s consumes block.'
    tools:
    - name: helper-method-retrieve-certificate-details
      description: Helper method to retrieve certificate details from a remote system.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-security-certificates.retrievecertificate
      with:
        host: tools.host
        port: tools.port
        protocolHint: tools.protocolHint
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-list-certificates-added-trust
      description: Retrieve a list of certificates added to the trust store.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repository-security-certificates.gettruststorecertificates
      outputParameters:
      - type: object
        mapping: $.
    - name: add-certificate-trust-store
      description: Add a certificate to the trust store.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repository-security-certificates.addcertificate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-certificate-trust-store
      description: Remove a certificate in the trust store.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repository-security-certificates.removecertificate
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.