Provide an option for AnyProxy to use an existing CA certificate

bqucvtff  于 2023-03-19  发布在  其他
关注(0)|答案(2)|浏览(156)
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

w6mmgewl

w6mmgewl1#

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.

zhte4eai

zhte4eai2#

I also have this need and ask for help.

相关问题