Sonatype Nexus Repository Security: certificates API

The Security: certificates API from Sonatype Nexus Repository — 3 operation(s) for security: certificates.

Operations 4

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

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nexus:nexus-security-certificates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nexus-security-certificates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Nexus Repository Manager REST Security: certificates API'
  version: 3.97.2-02
servers:
- url: /service/rest
tags:
- name: 'Security: certificates'
paths:
  /v1/security/ssl/truststore:
    get:
      tags:
      - 'Security: certificates'
      summary: Retrieve a list of certificates added to the trust store
      operationId: listSecuritySslTruststore
      responses:
        '200':
          description: Trust store certificates returned
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiCertificate'
        '403':
          description: Insufficient permissions to list certificates in the trust store.
    post:
      tags:
      - 'Security: certificates'
      summary: Add a certificate to the trust store
      operationId: createSecuritySslTruststore
      requestBody:
        description: The certificate to add encoded in PEM format
        content:
          '*/*':
            schema:
              minLength: 1
              type: string
        required: true
      responses:
        '201':
          description: The certificate was successfully added.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCertificate'
        '409':
          description: The certificate already exists in the system.
        '403':
          description: Insufficient permissions to add certificate to the trust store.
  /v1/security/ssl/truststore/{id}:
    delete:
      tags:
      - 'Security: certificates'
      summary: Remove a certificate in the trust store
      operationId: deleteSecuritySslTruststore
      parameters:
      - name: id
        in: path
        description: The id of the certificate that should be removed.
        required: true
        schema:
          type: string
      responses:
        '403':
          description: Insufficient permissions to remove certificate from the trust store
  /v1/security/ssl:
    get:
      tags:
      - 'Security: certificates'
      summary: Helper method to retrieve certificate details from a remote system
      operationId: listSecuritySsl
      parameters:
      - name: host
        in: query
        description: The remote system's host name
        required: true
        schema:
          minLength: 1
          type: string
      - name: port
        in: query
        description: The port on the remote system to connect to
        schema:
          type: integer
          format: int32
          default: 443
      - name: protocolHint
        in: query
        description: An optional hint of the protocol to try for the connection
        schema:
          type: string
      responses:
        '200':
          description: Certificate details retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCertificate'
        '403':
          description: Insufficient permissions to retrieve remote certificate.
        '400':
          description: A certificate could not be retrieved, see the message for details.
components:
  schemas:
    ApiCertificate:
      type: object
      properties:
        expiresOn:
          type: integer
          format: int64
        fingerprint:
          type: string
        id:
          type: string
        issuedOn:
          type: integer
          format: int64
        issuerCommonName:
          type: string
        issuerOrganization:
          type: string
        issuerOrganizationalUnit:
          type: string
        pem:
          type: string
        serialNumber:
          type: string
        subjectCommonName:
          type: string
        subjectOrganization:
          type: string
        subjectOrganizationalUnit:
          type: string