anyproxy icon indicating copy to clipboard operation
anyproxy copied to clipboard

Provide an option for AnyProxy to use an existing CA certificate

Open jameswestnz opened this issue 7 years ago • 2 comments

Which platform are you running AnyProxy

MacOS

The version of the AnyProxy

4.0.5

Your expected behavior of AnyProxy

Provide an option for AnyProxy to use an existing CA certificate

The actual behavior of AnyProxy

AnyProxy does not currently provide this functionality

jameswestnz avatar Feb 19 '18 09:02 jameswestnz

Same here. I would like to generate an in-memory, temporary certificate, e.g.

// @flow

import {
  promisify
} from 'util';
import pem from 'pem';
import type {
  SslCertificateType
} from '../types';

const createCertificate = promisify(pem.createCertificate);

const createSslCertificate = async (): Promise<SslCertificateType> => {
  const {
    certificate,
    csr,
    serviceKey
  } = await createCertificate({
    days: 365,
    selfSigned: true
  });

  return {
    certificate,
    csr,
    serviceKey
  };
};

There is currently no way to feed this to AnyProxy.

gajus avatar Apr 25 '19 14:04 gajus

I also have this need and ask for help.

t880216t avatar Sep 10 '20 01:09 t880216t